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.
As a Director of Eternal Web Private Ltd an AWS consulting partner company, Nirav is responsible for its operations. AWS, cloud-computing and digital transformation are some of his favorite topics to talk about. His key focus is to help enterprises adopt technology, to solve their business problem with the right cloud solutions.
Have queries about your project idea or concept? Please drop in your project details to discuss with our AWS Global Cloud Infrastructure service specialists and consultants.