- Go to https://www.anaconda.com/distribution/ and download conda (Choose python 3.6 - 2.7 is end-of-life)
- when it asks to modify your path, let it. That will make
~/anaconda3/bin/python
your python instead of the system python which is at/usr/bin/python
.
That should be everything!
% python myscript.py
% ipython
This will start an ipython shell where python commands can be entered (like the matlab shell)
% jupyter notebook
This will open a jupyter notebook on your machine.
You may need to open in a browser using the address supplied. Note that I don't find Safari works that well,
so often use Firefox.
There are two main types of cells "Code", where you enter and execute code (like the %% new cell
in matlab editor)
and "Markdown" cells where you can write comments. The lectures here were
written in a notebook.
Note the %matplotlib notebook
in the first code cell of this notebook. This tells matplotlib to render plots
inside the notebook.