Translations:JupyterNotebook/5/en

From Alliance Doc
Revision as of 18:41, 25 January 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
Jump to navigation Jump to search
  1. Load the Python module.
    [name@server ~]$ module load python/3.6
    
  1. Create a new Python virtual environment.
    [name@server ~]$ virtualenv $HOME/jupyter_py3
    
  1. Activate your newly created Python virtual environment.
    [name@server ~]$ source $HOME/jupyter_py3/bin/activate
    
  1. Install Jupyter Notebook in your new virtual environment.
    (jupyter_py3)_[name@server ~]$ pip install jupyter
    
  1. In the 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
    
  1. Finally, make the script executable.
    (jupyter_py3)_[name@server ~]$ chmod u+x $VIRTUAL_ENV/bin/notebook.sh