How to Install Jupyter Notebook on AWS EC2

How to Install Jupyter Notebook on AWS EC2

July 17, 2020 / Nirav Shah

Jupyter Notebook is an open-source web application that you can use to create and share documents that contain live code, equations, visualizations, and text. Jupyter Notebook is a very powerful tool for developing and presenting data science projects.

Pre-requisite

You have to install Anaconda on EC2 Instance for running Jupyter. Once it’s done, generate Jupyter config file using the following command.

$ jupyter notebook –generate-config

Write the default config to: /home/eternal/.jupyter/jupyter_notebook_config.py

Open the above-generated path using Nano or Vi Command.

$ nano /home/eternal/.jupyter/jupyter_notebook_config.py

You have to add your IP on line A and C.
NotebookApp.ip = ‘0.0.0.0’ without comment(#) and save the file and exit using CTRL + O and CTRL + X command to allow Jupyter Notebook to be accessed worldwide.

## The IP address the notebook server will listen on.

#c.NotebookApp.ip = ‘localhost’

c.NotebookApp.ip = ‘0.0.0.0’

Time to Reset Jupyter Notebook Password

$ jupyter notebook password

Enter password: ———————-> Enter your Password
Verify password: ———————-> Re-Enter your Password

Allow Jupyter Notebook default port i.e.; 8888 on the Amazon EC2 security group.

Start Jupyter Notebook and login

Use the following command to start Jupyter Notebook

$ jupyter notebook

Visit following URL to access your Jupyter Notebook.

http://EC2-Instance-Public-IP:8888/

Enter your password and login to Jupyter Notebook. It’d done.

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let Us Talk About Your AWS Development Requirements

    Have queries about your AWS project ideas and concepts? Please drop in your project details to discuss with our AWS experts, professionals and consultants.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project