Translations:JupyterNotebook/5/en

From Alliance Doc
Revision as of 20:52, 24 October 2017 by FuzzyBot (talk | contribs) (Importing a new version from external source)
Jump to navigation Jump to search
  1. Load the Python module.
    Question.png
    [name@server ~]$ module load python/3.5.2
    
  2. Create a new Python virtual environment.
    Question.png
    [name@server ~]$ virtualenv $HOME/jupyter_py3
    
  3. Activate your newly created Python virtual environment.
    Question.png
    [name@server ~]$ source $HOME/jupyter_py3/bin/activate
    
  4. Install Jupyter Notebook in your new virtual environment.
    Question.png
    (jupyter_py3)[name@server $] pip install jupyter
    
  5. In the virtual environment, create a wrapper script that launches Jupyter Notebook.
    Question.png
    (jupyter_py3)[name@server $] echo -e '#!/bin/bash\nunset XDG_RUNTIME_DIR\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
    
  6. Finally, make the script executable.
    Question.png
    (jupyter_py3)[name@server $] chmod u+x $VIRTUAL_ENV/bin/notebook.sh