Translations:JupyterNotebook/5/en
Jump to navigation
Jump to search
- Load the Python module:
-
[name@server ~]$ module load python/3.5.2
-
- Create a new Python virtual environment:
-
[name@server ~]$ virtualenv $HOME/jupyter_py3
-
- Activate your newly created Python virtual environment:
-
[name@server ~]$ source $HOME/jupyter_py3/bin/activate
-
- Install Jupyter into your virtual environment:
-
(jupyter_py3)[name@server $] pip install jupyter
-
- In your virtual environment, create a wrapper script that launches Jupyter notebook
-
(jupyter_py3)[name@server $] echo -e '#!/bin/bash\nunset XDG_RUNTIME_DIR\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
-
- Finally, make the script executable
-
(jupyter_py3)[name@server $] chmod u+x $VIRTUAL_ENV/bin/notebook.sh
-