Utf-8'en'waite Cider 2019 Tutorial
Utf-8'en'waite Cider 2019 Tutorial
Utf-8'en'waite Cider 2019 Tutorial
4. This will open a new browser window with the jupyter notebook
5. Now you can open a new notebook or an existing one (they have file
extensions (.ipynb for ipython notebook)
6. From the jupyter notebook browser, navigate to, and open the file:
01_python_basics.ipynb
Important things to remember
• You can update packages with conda, e.g.:
conda update obspy
• You should use a new environment for different software packages.
• If you use python for something else, you should create a new environment and
install what you need for that purpose there.
• Some packages require different versions of dependencies so things can get
corrupted if you install too many things in one place
• You can have different environments with different versions of python for
different uses
• For example, if a package is not supported in python 3.7, you can create an
environment that uses python 3.6 (or 3.5 or whatever) and run the package in that
environment
• Always start your obspy sessions the same way:
1. open Anacoda Prompt if on windows
2. activate the obspy environment
3. then start jupyter notebook or ipython or…(we will get into this)
more useful things to know
• In python scripts (or ipython or jupyter notebooks), line indents have
meaning
• Some things that work in ipython will not work in python
• Some useful shortcuts in jupyter:
• shift + return executes a cell and moves to next
• CNTL + return executes a cell
• indent selected lines with CNTRL + ]
• reduce indent using CNTRL + [
• CNTRL + / toggles between commented and uncommented