Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:services:application_services:jupyter:start [2023/03/30 16:06] – [Creating a new environment] bwegman1 | en:services:application_services:jupyter:start [2023/04/14 15:34] – [Notebook does not start / Kernel can not connect] 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 ==== | ||
+ | |||
+ | 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 45: | ||
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 48: | Line 63: | ||
* <code bash> mv -v .local/ .local.gwdg-disable </ | * <code bash> mv -v .local/ .local.gwdg-disable </ | ||
* Restart notebook server: File - Hub Control Panel - Stop My Server | * Restart notebook server: File - Hub Control Panel - Stop My Server | ||
+ | |||
+ | <WRAP info> | ||
+ | This action is also available through the selfservice portal: https:// | ||
+ | </ | ||
==== Installing additional python modules ==== | ==== Installing additional python modules ==== | ||
Additional Python modules can be installed via the terminal and the Python package manager " | Additional Python modules can be installed via the terminal and the Python package manager " | ||
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 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 " |