Illustrative examples iPython (Jupyter) notebooks for those trying to learn Python. (Also, notes to myself)
To play with them now without any installations, you can try these all out on mybinder.org.
Please also see my Introduction to Python short course- it presumes you can already program in some other language, more likely Matlab. It provides a fast blow-through of the "gist" of python.
In order to be able to use the notebooks you need a working scientific python installation.
The easiest path to this is to install Python via Anaconda. There are other distributions- I endorse this one based on it seeming to kept up to date the best. You must install Python 3.5 or later for these notebooks to work. Do not install Python 2.7.
This proceeds as a normal install on your platform (Mac, Windows, Linux...).
Subsequently you must update some components of Anaconda by using the conda command from the Anaconda Command Prompt. On Windows, this runs as an actual program.
To ensure the conda package list is as up to date as possible:
conda update conda
Then update everything else with:
conda update --all
To use Jupyter (the notebook), launch a terminal on Mac or Linux, or the Anaconda Terminal on Windows (or similar name) and type:
jupyter notebook
It's all in the GUI from here. You just need to play around a bit.
Your feedback is appreciated. Please also look at other demonstrations on my blog.
Like this module, buy me a coffee!