TODO
Set up a python virtual environment. (There are several ways to do this, my favorite is below) Further reading on virtual environments in python can be found here, here, here and here.
virtualenv -p python3 .envThis sets up an entire python installation as an environment under the name .env which is not descriptive, but keeps me from having to remember how to activate all my different environments.
Next activate the environment, and install all the python dependencies via the requirements file. When the environment is active it will display to the left of the prompt, as shown below (where the $ symbol indicates your prompt.)
$ source .env/bin/activate
(.env) $ pip install -r requirements.txtWhen finished with the repository or environment, you can deactivate it with the simple command deactivate.
(.env) $ deactivate
$ With your environment activated, you can run
jupyter notebookand it will launch in your browser. If not, it should give you a link to copy and paste into the browser. Then you can navigate any folders underneath the directory you ran your command and open the notebook.
Note that the notebook auto-saves, but you should still explicitly save it before exiting.
The notebook also suspends the interpreter between code blocks and keeps variables in scope much longer than you may be used to. If you have any weird issues, just restart and re-run the notebook.
Problems with MatPlotLib on Mac OS are common and can have several different solutions. I am happy to help troubleshoot.
For reference, this talks about a few solutions in using venv vs. virtualenv.