User Tools

Site Tools


script:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
script:python [2020/11/26 08:37] – [Create virtual environment for zipline app and using it] adminscript:python [2023/11/28 09:35] – [The try-except clause] admin
Line 223: Line 223:
   - Step3: Install zipline in environment:<code>   - Step3: Install zipline in environment:<code>
 conda install -c Quantopian zipline conda install -c Quantopian zipline
-</code>+</code> =>install package **zipline** from channel **Quantopian** on **https://anaconda.org/anaconda/repo**{{:script:screen_shot_2020-11-26_at_4.58.01_pm.png|}}
 === Other commands of conda === === Other commands of conda ===
   * List environments in conda<code bat>   * List environments in conda<code bat>
Line 1107: Line 1107:
 else: else:
    If there is no exception then execute this block.     If there is no exception then execute this block. 
 +</code>
 +<code python>
 +try:
 +   You do your operations here;
 +   ......................
 +except:
 +   If there is any exception, then execute this block.
 +   ......................
 </code> </code>
   * The except clause with multiple exceptions<code python>   * The except clause with multiple exceptions<code python>
script/python.txt · Last modified: 2023/11/28 09:35 by admin