Installing Jupyter Notebook
Jupyter Notebook provides an interactive and flexible environment for programming, adding text, and visualizations, promoting reproducibility, collaboration
Jupyter Notebook provides an interactive and flexible environment for programming, adding text, and visualizations, promoting reproducibility, collaboration, and exploratory computing. As a developer, understand that power of this tool, make you in love with this tool specially in data analysis, research, and sharing insights with others.
To install Jupyter Notebook, you need to have Python installed on your system.
There are two methods for installation of Jupyter.
Method1: Using pip
Pip will be available from command line once you install python. If you don't have Python installed, and download and install it from the official Python website (https://www.python.org/downloads/).
It is advisable to install python3.X
Once you have Python installed, use the pip package manager, to install Jupyter Notebook from command prompt
pip3 install jupyter
The above command will download and install Jupyter Notebook and its dependencies which take around few seconds.
Once installation is complete, you can start Jupyter Notebook by running command
The command will launch the Jupyter Notebook server and open a new tab or window in your default web browser. It is server-client based project. In case, you are not been automatically redirected to the browser page, you can access the notebook by navigating to http://localhost:8888 in your web browser.
Above url means, the Jupyter notebook server runs on local port number 8888. You are connecting to this server from browser.
Second Method: By Anaconda installation( Recommended)
Anaconda comes with number of packages, tools and Jupyter notebook is one among them. Anaconda also install python in your system.
Your may download Anaconda visiting their website (https://www.anaconda.com/products/individual) for downloading latest the Anaconda distribution
Make sure you choose the appropriate distribution for your operating systems and version for Python 3.x.
During installation of Anaconda, make sure to select the option to add Anaconda to your system's PATH. If not ticking this option means that you should manually set the python path to system variables.
Once installed, launch Jupyter Notebook In Anaconda Navigator, by click the "Launch" button below the Jupyter Notebook icon.
To use Jupyter Notebook:
In the Jupyter Notebook interface, which you see on browser page, there are options to navigate to existing notebooks or create new ones.
To create new Jupiter Notebook, click "New" button and selecting "Python 3". In case any other kernel available, you can choose available python kernel from dropdown menu based on project requirements.
When you notebook file, you can write and execute Python code cells, add markdown cells for documentation, and perform interactive data analysis.
Good luck for your interactive computing and data analysis using Jupyter Notebook.