Install Jupyter Notebook On Ubuntu

Prasandeep
0

 www.codersgeek.in

If you are a data science enthusiast or machine learning student then you have been heard many times about the Jupyter Notebook. So in this tutorial, we will discuss about Jupiter notebook that how we install it in our system especially on Linux distro like Ubuntu or other Debian-based operating systems. So before the installation process, you need to know about what is Jupyter Notebook and why people use this?

What is Jupyter Notebook?

The Jupyter Notebook is an open-source web full-featured IDE for Python and Data Science and Machine learning enthusiast or for developers So, it allows to create and share documents in live mode. And it is also used for data visualization and narrative text data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. So Jupyter Notebook is a powerful tool for us. Most of the Data Scientist use it for their work. So this is the best IDE for Python, Data Science, and Machine Learning enthusiast. 

Here are some tips that how can we install Jupyter Notebook in our Linux operating system :

Step 1: 

In the first step, we will install all python dependencies and also we need to update our machine using the terminal(CTRL+ALT+T) command

$ sudo apt-get update 

Now, we will install pip and the Python header files, these are very important for Jupyter Notebook.

sudo apt-get install python3 -pip python3-dev 

Step 2:
 
After all dependencies installation now we will move to create a Python Virtual Environment for our Jupyter Notebook. 
So here are some command, you need to run our terminal:

sudo -H pip3 install --upgrade pip
sudo -H pip3 install virtualenv

Note: Here, -H flag is used for security policy sets the home environment variable.

Now we will install Jupyter Notebook 

Step3: Install Jupyter Notebook 

Just type this command in your terminal and you will see you have installed Jupyter in your system.

pip install jupyter

Step 4: It's time to Run Jupyter 

As you know we have everything installed in our machine, Now we need to run Jupyter Notebook. just execute the following command:  

$ jupyter notebook

You can see in this image

www.codersgeek.in

Step 5: Its time to open a new file in Jupiter and execute some simple python code for conformation:

After run the Jupyter notebook command you will see an interface in your browser like this image 
 
www.codersgeek.in

Here You need to click on open new file and select Python3 or whatever you want, now you will see a new page in your browser of Jupyter.

www.codersgeek.in

You can see in this above image that we have written a python program after creating a new file but if you don't know any executing shortcut keys for Jupyter here are some important short keys for you.

For Executing Program:

 CTRL+Enter

For New Cell:

 CTRL+Space

Final Thoughts: 

Here, we are not promoting any dangerous, harmful, or any other activities stuffs. We provide our best for readers and tech enthusiasts so we hope you have got all the install and setup points for Jupyter Notebook. If you have any doubt or problem regarding this tutorial then let us know in the comment below, definitely we will provide you our best.

Tags

Post a Comment

0Comments

We welcome your feedback and thoughts – please share your comments!

Post a Comment (0)