Jupyter is the go-to application for learning and writing Python as well as performing data processing, numerical simulation, statistical modeling, and machine learning. It’s an open-source software that’s free to use. Developed and maintained by Project Jupyter, a non-profit project born out of the IPython Project in 2014, its name is derived from Julia, Python, and R, the core programming languages that it supports.
This article will provide a detailed, step-by-step guide on installing and running the Jupyter (IPython) Notebook on your personal computer without using a remote server. This will include directives for creating a notebook, adding content, exporting notebooks, notebook extensions, etc.
The Jupyter Notebook (formerly called IPython Notebook) is a web application that lets you create and share computational documents that contain:
The Jupyter Notebook can be helpful for a variety of functions. These include learning and teaching a programming language such as Python, and storing and sharing data.
It is important to note that the Jupyter Notebook does not come pre-installed with Python. This means that in order to use it, you will need to install the Jupyter Notebook individually. To do so, follow the steps below:
Visit the project’s official website at https://jupyter.org/
You will be given two options to continue, Try it in your browser and Install the Notebook.
- Try it in your browser: You can choose this option if you don’t want to install the application on your device. This way, you can gain access to a hosted version of the Jupyter Notebook.
- Install the Notebook: Choosing this will take you to another page that offers you detailed information about the installation process.
You will then proceed to the two different ways to install the application as elaborated below:
If you’re new to Python or are starting from scratch, choose the second option.
You can click here to visit the Anaconda download page and choose between different installers for Windows, macOS, and Linux to download the software.
Anaconda distribution comes with most of the scientific libraries preinstalled, which includes the Jupyter Notebook. This means that you won’t need any other applications other than Anaconda itself.
Now that you have the Anaconda distribution installed, let’s start learning the basics.
This should start up Jupyter. Your browser will then redirect you to the following URL: http://localhost:8888/tree.
Your screen should now look something like this:
Now that you’ve learned how to start the Notebook server, it’s time to explore how to create an actual Jupyter Notebook document.
The Running status on the top indicates that the file is opened right now. You can choose to shut down the same by clicking on the Shutdown button.
If a cell is active, it is usually distinguished by two modes: Command mode and Edit mode.
A useful function of the Jupyter Notebook is its ability to create checkpoints. A checkpoint saves the current state of the notebook, enabling it to be reverted later in case changes were made to the notebook since the checkpoint was created.
Now that you’ve learned the basics of the Jupyter Notebook, you can create your own notebook and use it for upcoming Python projects.
If you want to share your notebook online, you can organize it into a slideshow or upload it to GitHub. You can also use a binder to let your users share a notebook without them having to install anything.
Image credits: CodingTheSmartWay.com
Tell us the skills you need and we'll find the best developer for you in days, not weeks.