Changes between Version 44 and Version 45 of Jupyter
- Timestamp:
- 05/22/18 10:44:46 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Jupyter
v44 v45 77 77 ==== Setup your own specialized Jupyter-Kernel 78 78 The installed kernels might not suite your needs and you want to switch to a different software stage or want to load additional software modules. \\In that case you need to set up your own specialized Jupyter kernel (located in ''${HOME}/.local/share/jupyter/kernels/'').\\ This can be done in the terminal in a few steps on the supercomputer: 79 *LOAD the modules you need79 1. LOAD the modules you need 80 80 * start with ''module --force purge'' to remove any module which is already loaded 81 81 * ensure this includes a recent Python 3.x (even if you are not planing to use Python) … … 88 88 }}} 89 89 90 * CREATE a new Python virtual environmenton the supercomputer90 2. CREATE a new Python virtual environment (VENV) on the supercomputer 91 91 * e.g. in ''$HOME/venv_mykernel/'' 92 92 * more: https://docs.python.org/3/library/venv.html … … 97 97 }}} 98 98 99 *ACTIVATE the new Python virtual environment (VENV) in your terminal99 3. ACTIVATE the new Python virtual environment (VENV) in your terminal 100 100 * the loaded modules modify $PYTHONPATH (''python -m site'') 101 101 * ensure(!!!) the first entry is the ''site-package'' directory of your VENV … … 107 107 }}} 108 108 109 *PIMP your VENV109 4. PIMP your VENV 110 110 * install ipykernel with ''pip'' 111 111 * install any other python software you need with ''pip'' … … 116 116 }}} 117 117 118 *INSTALL your personal Jupyter kernel118 5. INSTALL your personal Jupyter kernel 119 119 * location of the new Jupyter kernel: ''${HOME}/.local/share/jupyter/kernels/mykernel/'' 120 120 * more: http://ipython.readthedocs.io/en/stable/install/kernel_install.html … … 126 126 Now, modify this basic jupyter kernel to suite your needs. 127 127 128 *WRITE a launch script128 6. WRITE a launch script 129 129 * that sets up your environment 130 130 * load the same modules as in (1) 131 131 * followed by the IPython kernel launch 132 * load the Python virtual environment as in ( 2)132 * load the Python virtual environment as in (3) 133 133 * example (e.g. ${HOME}/venv_mykernel/mykernel.sh): 134 134 {{{ #!ShellExample … … 146 146 }}} 147 147 148 *MODIFY the Jupyter kernel configuration file148 7. MODIFY the Jupyter kernel configuration file 149 149 * located in ${HOME}/.local/share/jupyter/kernels/mykernel/kernel.json file 150 150 * it must call your launch script: