Changes between Version 44 and Version 45 of Jupyter


Ignore:
Timestamp:
05/22/18 10:44:46 (6 years ago)
Author:
Jens Henrik Goebbert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Jupyter

    v44 v45  
    7777==== Setup your own specialized Jupyter-Kernel
    7878The 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 need
     791. LOAD the modules you need
    8080  * start with ''module --force purge'' to remove any module which is already loaded
    8181  * ensure this includes a recent Python 3.x (even if you are not planing to use Python)
     
    8888}}}
    8989
    90 * CREATE a new Python virtual environment on the supercomputer
     902. CREATE a new Python virtual environment (VENV) on the supercomputer
    9191  * e.g. in ''$HOME/venv_mykernel/''
    9292  * more: https://docs.python.org/3/library/venv.html
     
    9797}}}
    9898
    99 * ACTIVATE the new Python virtual environment (VENV) in your terminal
     993. ACTIVATE the new Python virtual environment (VENV) in your terminal
    100100  * the loaded modules modify $PYTHONPATH (''python -m site'')
    101101    * ensure(!!!) the first entry is the ''site-package'' directory of your VENV
     
    107107}}}
    108108
    109 * PIMP your VENV
     1094. PIMP your VENV
    110110  * install ipykernel with ''pip''
    111111  * install any other python software you need with ''pip''
     
    116116}}}
    117117
    118 * INSTALL your personal Jupyter kernel
     1185. INSTALL your personal Jupyter kernel
    119119  * location of the new Jupyter kernel: ''${HOME}/.local/share/jupyter/kernels/mykernel/''
    120120  * more: http://ipython.readthedocs.io/en/stable/install/kernel_install.html
     
    126126Now, modify this basic jupyter kernel to suite your needs.
    127127
    128 * WRITE a launch script
     1286. WRITE a launch script
    129129  * that sets up your environment
    130130    * load the same modules as in (1)
    131131  * followed by the IPython kernel launch
    132     * load the Python virtual environment as in (2)
     132    * load the Python virtual environment as in (3)
    133133  * example (e.g. ${HOME}/venv_mykernel/mykernel.sh):
    134134{{{ #!ShellExample
     
    146146}}}
    147147
    148 * MODIFY the Jupyter kernel configuration file
     1487. MODIFY the Jupyter kernel configuration file
    149149  * located in ${HOME}/.local/share/jupyter/kernels/mykernel/kernel.json file
    150150  * it must call your launch script: