#
Jupyter Notebook
Jupyter Notebooks are a web-based development and visualisation environment. It provides flexible integration of notebooks, code and data in a portable and secure manner.
#
Workflow
#
Installing Jupyter with Conda
The flight environment will need to be activated before the environments can be created so be sure to run flight start
or setup your environment to automatically activate the flight environment.
- Create a conda software environment:
[flight@chead1 (mycluster1) ~]$ flight env create conda
- Activate the environment:
[flight@chead1 (mycluster1) ~]$ flight env activate conda
- Install Jupyter:
<conda> [flight@chead1 (mycluster1) ~]$ conda install jupyter
- Install Notebook dependencies:
<conda> [flight@chead1 (mycluster1) ~]$ conda install matplotlib
<conda> [flight@chead1 (mycluster1) ~]$ conda install folium -c conda-forge
#
Launch a Jupyter Notebook
These commands will need to be run from a graphical desktop session as it will launch a web browser. For more information on launching desktops, see the Flight Desktop section
- Download the example notebook:
<conda> [flight@chead1 (mycluster1) ~]$ curl -L https://jupyterbook.org/en/stable/_downloads/12e9fb0f1c062494259ce630607cfc87/notebooks.ipynb > notebooks.ipynb
- Launch the notebook:
<conda> [flight@chead1 (mycluster1) ~]$ jupyter notebook notebooks.ipynb
- A web browser will launch with the notebook displayed