The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. The following instructions will explain how to setup a jupyter notebook securely within your terminal.
FastX
- Follow the instructions for using FastX to access your terminal found in the "Using FastX" article.
Loading Python in your Terminal
The Jupyter Notebook relies on Python, so you must load in a version of Python that works with Jupyter. The following line should be written in the command line:
- $ module load python/3.7.2-gcc-7.4.0-6on2qnpy
This will have to be reloaded every time you start a new session, or you can see how to load modules permanently in the "Using Modules" article.
Installing Anaconda
Anaconda is the program that is used to create the Jupyter Notebook. Complete the following commands and instructions in your terminal to install:
- $ cd ~/Downloads
- $ wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
- $ bash ./Anaconda3-2019.03-Linux-x86_64.sh.
- Hit enter to scroll through terms and conditions and answer yes to all questions
- $ cd ~
-
$ source ~/.bashrc
anaconda3 should now be visible as directory off of your user directory(enter the command "$ ls" in the command line, while in your home directory to view this).
Creating the Jupyter Notebook
Now that anaconda is installed, setting up a Jupyter Notebook is all that is left. The following commands will set up your configuration files, and a password to be used for others to access the notebook.
Complete the Following steps in your terminal:
- $ cd ~/anaconda3
- $ cd bin
- $ ./jupyter notebook --generate-config
- $ ./jupyter notebook password
- Enter and verify the password you would like your notebook to have
- $ ./jupyter notebook
A browser should open in your fastX session with your Jupyter Notebook. You will be prompted for the password you just set up, and the Notebook should be ready to use.
Information about the notebook, such as the URL other users need to access the notebook, will be shown in the terminal.
Opening a Previously Created Notebook
Creator
Enter in the Terminal:
-
$ module load python/3.7.2-gcc-7.4.0-60n2qnpy #only needed if not set to be auto-loaded when the session is created
-
$ cd ~/anaconda3
-
$ cd bin
-
$ ./jupyter notebook
Other User
In your fastX session, open up activities and select firefox to open a browser. The creator of the Notebook will have to give you the URL and password for the notebook. Enter the URL given to you in the browser, and enter the password when prompted. You should then have access and be ready to use the Notebook.
If there are any further questions, or there is an issue with the documentation, please contact rc-help@rit.edu for additional assistance.
Related articles
- Page: Clearing the known_hosts SSH File
- Page: Using FastX
- Page: Creating and Using SSH Keys
- Page: Setting up a Jupyter Notebook
- Page: Submitting a Job with sinteractive