Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt

The Jupyter Notebook is an open source web application for interactive data science and scientific computing across over 40 programming languages. It allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more.

 Users can install their own individual version of Jupyter using the following steps.

  1. Code Block
    languagebash
    titleInstall your own version of python
    to run jupyter.
    .
    login001: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
    login001: chmod u+x Miniconda3-latest-Linux-x86_64.sh
    login001: ./Miniconda3-latest-Linux-x86_64.sh
  2. Code Block
    titleInstall jupyter within anaconda
    login001: miniconda3/bin/conda install jupyter
  3. Start up jupyter
    1. Code Block
      languagebash
      titleGet an allocation on a compute node. Write down the name of the assigned compute node
      login001: srun --pty -p interactive bash
      alpha001: 
    2. Code Block
      titleStart jupyter on the compute node. It will display the port # the software is running on, usually 8888
      alpha001: anaconda3miniconda3/bin/jupyter notebook --no-browser
      [NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
      [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
  4. Access jupyter
    1. Code Block
      languagebash
      titleNow setup forwarding from your workstation thru the headnode to the assigned compute node, in this example it is alpha001
      Your Workstation: ssh username@login.cluster.tufts.edu -L 8888:localhost:8888 ssh alpha001 -L 8888:localhost:8888
    2. Point the browser on your workstation to http://localhost:8888/    and the jupyter web interface should come up.

    3. Do computation, do science!
  5. Exit jupyter
    1. Code Block
      titleDon't forget to exit jupyter so it isn't taking up resources
      The Jupyter Notebook is running at: http://localhost:8888/
      Shutdown this notebook server (y/[n])? y
      [C 14:19:54.199 NotebookApp] Shutdown confirmed
      [I 14:19:54.199 NotebookApp] Shutting down kernels

...