McMaster University

CAS 766 Concurrent Programming
Emil Sekerinski

Term 1, 2019-2020

Jupyter Installation

First, install Jupyter Notebook:

  • Prerequisite: Python 3
  • Update pip3 or pip, depending on your installation:
     pip3 install --upgrade pip 
  • Install Jupyter Notebook:
     pip3 install jupyter 
  • To run Jupyter Notebook:
     jupyter notebook 
Second, install the Jupyter extension for the course notes. This extension adds code highlighting for cells with the writefile magic (based on the file extension), adds markdown inline code highlighting, code highlighting for algorithms, and contains some hacks for displaying images nicely in slide mode and regular mode:
  • Download and unzip: jupyter-emil-extension
  • After extracting the zip file, 'cd' into the folder which contains "setup.py", then:
     pip3 install . 
  • Install the jupyter-se3bb4-extension:
     jupyter nbextension install --py jupyter-emil-extension 
  • Enable the jupyter-se3bb4-extension:
     jupyter nbextension enable --py jupyter-emil-extension 
  • Check the installation:
     jupyter nbextension list 
  • It shoud display:
     jupyter-emil-extension/main enabled
        - Validating: ok
Third, install the Jupyter slideshow extension, live_reveal.
  • Install RISE:
     pip3 install RISE 
  • Install the JS and CSS:
     jupyter-nbextension install rise --py --sys-prefix 
  • Enable the nbextension:
     jupyter-nbextension enable rise --py --sys-prefix 
  • Check the installation:
     jupyter nbextension list 
  • It shoud display:
     rise/main  enabled
     - Validating: OK
Optionally, install spellcheck:
  • First download the collection:
     git clone https://github.com/Calysto/notebook-extensions.git 
  • Then cd into the folder:
     cd notebook-extensions 
  • Install the nbextension:
     jupyter nbextension install calysto --sys-prefix 
  • Enable the installation:
     jupyter nbextension enable calysto/spell-check/main 
  • Check the installation:
     jupyter nbextension list 
  • It shoud display:
     calysto/spell-check/main  enabled
          - Validating: OK
You also need to install the used programming languages:
  • Java: any recent version, only command line (no IDE)
  • Go: any recent version, only command line (no IDE)