Lab Hour 1: Tutorial on Terminal and iPython
Friday 8 April 2016
Install Anaconda, which will provide you with all the Python packages you will need for many Stanford courses. These packages include numpy, scipy, matplotlib, and jupyter (iPython notebooks).
A tutorial on working in the Terminal can be found here.
A tutorial on working in iPython can be downloaded here. You can start the notebook by going to Terminal, navigating to the directory containing the newly downloaded , and executing the command
, which opens the jupyter home directory in your browser. Double-click the notebook to get started.
You can convert the notebook to a basic python script using the command:
ipython nbconvert --to PYTHON
One thing we did not cover in detail were NumPy and SciPy. We highly recommend going through this tutorial for getting up to speed.