Jupyter Notebook - cucl-srg/L50 GitHub Wiki

Getting started

On course machines we have installed Python 2.7.6 and Jupyter 4.3.0.
To install Jupyter on your own machine:
First check that Python 2 is installed.

sudo apt-get install python-pip
pip install --upgrade pip # may be necessary to reboot after this
sudo apt-get install python-dev
sudo pip install jupyter
jupyter notebook # verify working

Docs: Read up to the section on keyboard shortcuts.
Usage guide

Using Jupyter Notebook in L50 Labs

Structure of the templates

The Notebook templates load functions that format the data for easy processing. These are hidden so that the template is more focused on the objectives. There are gaps in cells which need to be filled in order to run correctly.

Broadly speaking, for each experiment there are two cells. The first cell runs the experiment and saves any data to files. The second cell does the data processing. This is so that you can do further processing after the practical session if needed. Check that the data is saved correctly, and transfer it to your own data storage device before leaving the practical session.

Some cells that run experiments take over a minute to complete. It is wise to check that the tool is working on Terminal before starting the experiment.

Exporting Notebooks

Exporting as .tex file saves graphs as separate pngs. Saving as .ipynb allows you to continue running code on your own machine.