What is jupyter notebook?

svg viewer

Project Jupyter exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages.

One of Project Jupyter’s projects is jupyter notebook. jupyter notebook is an open-source web app that equips users with tools to write code to achieve various outcomes like data cleaning, data visualization, charting, regression analysis, statistical modeling, machine learning, etc. Jupyter notebook initially only had three core languages, Julia, Python, and R that, when combined, gave birth to the name Jupyter. Now, jupyter notebook supports over 40 programming languages. These notebooks can easily be shared over github or sent to a colleague via dropbox.

Installation

You can work on jupyter notebook online or offline. To work offline, you will have to either install it either directly using: pip

pip install jupyter

Or you can install it through anaconda client.

It is better to install it through anaconda client as it comes with numerous pre-installed libraries.

Working with jupyter notebook

Creating a notebook

svg viewer
  1. Whenever you start jupyter notebook locally, it opens a jupyter pannel in your default browser with URL localhost:8888/tree.

  2. To create a new notebook, click on New.

Getting started

svg viewer
  1. On top, there is the menu bar, which lets you interact with the notebook according to your need. If you are stuck, there is a Help button at the end of the menu bar.
  2. Under the menu bar you can find the tool bar. You can use these tools to edit the notebook (e.g., cut, copy, paste, save, run the cell, stop the cell, and restart the cell).
  3. Underneath the menu bar and toolbar, we have the cell. There are 3 types of cells: Code, Markdown, and Raw NBConvert. Code cells are used to write codes in a specific language. Raw NBConvert cells are used to convert the notebook into any other format(HTML, LaTex). Lastly, Markdown cells are used to write texts, add comments, add headings, and style the content.

To read more about jupyter notebook, visit its official documentation

Copyright ©2024 Educative, Inc. All rights reserved