Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:services:application_services:jupyter:start [2023/03/30 16:05] – [Installation of additional packages and environments via Conda] bwegman1 | en:services:application_services:jupyter:start [2023/03/31 17:30] – [Starting a notebook] bwegman1 | ||
---|---|---|---|
Line 24: | Line 24: | ||
Storage and calculation of notebooks happens server side, the client does not need to install any software or meet any other prerequisites other than having a fairly modern browser to work with. To log into the service a [[en: | Storage and calculation of notebooks happens server side, the client does not need to install any software or meet any other prerequisites other than having a fairly modern browser to work with. To log into the service a [[en: | ||
+ | |||
+ | ==== Selecting a notebook image ==== | ||
+ | |||
+ | <WRAP tip> | ||
+ | This feature will become available with an update scheduled for April 6th. | ||
+ | </ | ||
+ | |||
+ | After successfully logging in a selection screen appears with a choice of notebook images to start the notebook server with: | ||
+ | * GWDG default image (based on jupyter/ | ||
+ | * This was also the default image in the past. | ||
+ | * Python Stack w/ TensorFlow (jupyter/ | ||
+ | * Python and R Spark Jupyter Notebook (jupyter/ | ||
+ | * Data Science Jupyter Notebook (jupyter/ | ||
+ | |||
+ | The notebook image provides the environment for the notebook server, in particular the pre-installed software. | ||
+ | While the GWDG default image is heavily extended from the regular data science notebook the regular notebooks from the Jupyter project may be preferable in some cases or provide a more specialized environment for a specific software set. | ||
+ | |||
+ | Irrespective of the selected image the user's home directory and data remains the same. | ||
+ | |||
+ | The notebook image can only be changed when the current notebook server is stopped and restarted. The server does not automatically stop when logging off or closing the browser, although this will cause it to timeout after a while and then stop. The server can be explicitly stopped from the menu File -> Hub Control Panel -> "Stop my server" | ||
==== Starting a notebook ==== | ==== Starting a notebook ==== | ||
Line 29: | Line 49: | ||
After successful login at Jupyter-Hub there is a drop down menu at the top left corner. Under „File - New“ a new notebook can be created. Previously used notebooks and their files are listed on the left hand side. | After successful login at Jupyter-Hub there is a drop down menu at the top left corner. Under „File - New“ a new notebook can be created. Previously used notebooks and their files are listed on the left hand side. | ||
- | Detailed | + | Detailed |
==== Managing notebooks ==== | ==== Managing notebooks ==== | ||
Line 71: | Line 90: | ||
mv -v .local/ .local.gwdg-disable | mv -v .local/ .local.gwdg-disable | ||
</ | </ | ||
+ | |||
<WRAP tip> | <WRAP tip> | ||
**mamba** is an alternative implementation of the **conda** package manager. They are interchangeable, | **mamba** is an alternative implementation of the **conda** package manager. They are interchangeable, | ||
+ | https:// | ||
</ | </ | ||
Line 90: | Line 111: | ||
Creating and activating the environment: | Creating and activating the environment: | ||
<code bash> | <code bash> | ||
- | conda create -y --prefix ./ | + | mamba create -y --prefix ./ |
- | conda activate ./wikidoku | + | mamba activate ./wikidoku |
</ | </ | ||
As an example the package '' | As an example the package '' | ||
<code bash> | <code bash> | ||
- | conda install -y jinja2 | + | mamba install -y jinja2 |
</ | </ | ||
Line 103: | Line 124: | ||
python3 -m ipykernel install --user --name wikidoku --display-name " | python3 -m ipykernel install --user --name wikidoku --display-name " | ||
jupyter kernelspec list | jupyter kernelspec list | ||
- | conda deactivate | + | mamba deactivate |
</ | </ | ||
Line 119: | Line 140: | ||
Via '' | Via '' | ||
- | === Installing additional kernels in an Conda environment === | + | === Installing additional kernels in an Conda/ |
Installing a new, independent Python kernel für the current environment is possible. As an example an older Python 2.7 kernel will be installed next. | Installing a new, independent Python kernel für the current environment is possible. As an example an older Python 2.7 kernel will be installed next. | ||
Line 126: | Line 147: | ||
Next follows the installation of the kernel, the '' | Next follows the installation of the kernel, the '' | ||
<code bash> | <code bash> | ||
- | conda install -y python=2.7 | + | mamba install -y python=2.7 |
python3 -m pip install jupyter | python3 -m pip install jupyter | ||
python3 -m ipykernel install --user --name oldpython --display-name " | python3 -m ipykernel install --user --name oldpython --display-name " |