Installing Jupyter Notebook (Online mode)

Use the following steps to install Jupyter in an online environment.

Procedure

  1. Log in as the root user.
  2. Install the Python virtual environment.
    cd /home/sifsuser
    /usr/local/bin/pip3.5 install virtualenv
  3. Create and activate a virtual environment.
    virtualenv jup_env
    . ./jup_env/bin/activate
    Note: Ensure that you include the 2 periods in the command.

    The cursor prompt changes to show that all further changes will affect the virtual environment.

    (jup_env) [root@ ~]#

    You can exit the virtual environment by entering the following command:

    deactivate
  4. Create a text file that is named constraints.txt and includes the following entries:
    backcall==0.1.0
    bleach==1.5
    html5lib==0.9999999
    parso==0.3.1
  5. Install Jupyter.
    cd /home/sifsuser
    pip3.5 install jupyter==1.0.0 -c constraints.txt

    This command uses the virtual environment pip3.5. Do not change to /usr/local/bin/pip3.5.

  6. Exit the virtual environment.
    deactivate