Translations:JupyterNotebook/5/en

From Alliance Doc
Revision as of 19:54, 12 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 into your virtual environment:
    Question.png
    (jupyter_py3)[name@server $] pip install jupyter
    
  5. In your 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