I explained a minimal workflow for notebooks. Also, I made simple IPython widgets, which were used throughout the book, so I will describe them here. To run the IPython notebook code, follow these steps:
Start the IPython notebook either with your GUI or with the following command:
$ jupyter notebook
Run the code either cell by cell or in one run.
I made a widget that sets some of the matplotlib properties. The settings are stored in the dautil.json
file in the current folder. These files should also be part of the code bundle.
The other IPython widget helps with setting up subplots. It takes care of setting titles, legends, and labels. I consider these strings to be configuration and, therefore, store them in the dautil.json
files too.