Difference between revisions of "Jupyterlab"

From CT Wiki
Jump to navigation Jump to search
(Created page with "Jupyterlab is a popular interactive Python notebook manager. This service runs on a Stoomboot node with 64 cores and 512 GB memory. To use the service go to https://callysto....")
 
Line 7: Line 7:
 
     pip install --user matplotlib
 
     pip install --user matplotlib
  
You can also use conda to set up new environments, e.g.
+
==== Setting up new environments ====
  
    conda create --name python38 python=3.8
+
===== Using conda =====
    conda activate python38
+
conda create --name python38 python=3.8
    conda install ipykernel
+
conda activate python38
    python -m ipykernel install --user --name python38 --display-name 'Python 3.8'
+
conda install ipykernel
 +
python -m ipykernel install --user --name python38 --display-name 'Python 3.8'
 +
 
 +
This installs in $HOME/.local/share/jupyter/kernels/python38.
 +
 
 +
===== Using python venv =====
 +
python -m venv testing123
 +
source testing123/bin/activate
 +
pip install ipykernel
 +
python -m ipykernel install --user --name testing123 --display-name 'Testing 1,2,3'
 +
 
 +
This installs in $HOME/.local/share/jupyter/kernels/testing123.

Revision as of 17:11, 28 October 2021

Jupyterlab is a popular interactive Python notebook manager. This service runs on a Stoomboot node with 64 cores and 512 GB memory.

To use the service go to https://callysto.nikhef.nl/ and log on via Nikhef SSO. The notebook will run under your Nikhef account with full access to your home directory, project and data shares, and dCache.

To customize your Python environment, go to File→New→Terminal and use e.g.

   pip install --user matplotlib

Setting up new environments

Using conda
conda create --name python38 python=3.8
conda activate python38
conda install ipykernel
python -m ipykernel install --user --name python38 --display-name 'Python 3.8'

This installs in $HOME/.local/share/jupyter/kernels/python38.

Using python venv
python -m venv testing123
source testing123/bin/activate
pip install ipykernel
python -m ipykernel install --user --name testing123 --display-name 'Testing 1,2,3'

This installs in $HOME/.local/share/jupyter/kernels/testing123.