Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Jupyter Notebook Basics | Functions and Their Properties
Mathematics for Data Science

bookJupyter Notebook Basics

Jupyter Notebook is a powerful platform that not only runs code but also helps organize complex code blocks in a clear and structured way. Easy to use and widely adopted across industries, Jupyter Notebook enables developers and data scientists to inspect, test, and present large portions of code efficiently, making their work more ergonomic, scalable, and production-ready.

Installing and Running Jupyter Notebook

Jupyter Notebook is included in Anaconda but can also be installed separately via pip.

pip install notebook

To launch Jupyter Notebook, open a terminal or command prompt and run:

jupyter notebook

This will open Jupyter in your web browser, displaying the Notebook Dashboard, where you can create and manage notebooks.

Basic Operations in Jupyter Notebook

1. Creating and Running Cells

  • Jupyter notebooks are made up of cells that can contain code or markdown;
  • To run a cell, press Shift + Enter or click the Run button.
# Example: Running a simple Python cell
print("Hello, Jupyter!")

2. Markdown for Text Formatting

Jupyter supports Markdown for adding text, equations, and documentation. To create a Markdown cell, change the cell type from Code β†’ Markdown in the toolbar.

#This is a Heading
**Bold Text**  
*Italic Text*  
- Bullet Points

3. Saving and Exporting Notebooks

  • Click File β†’ save and checkpoint or press Ctrl + S to save your work;
  • Notebooks can be exported as .py, .html, .pdf, or Markdown via File β†’ Download As.

Keyboard Shortcuts for Efficiency

  • Shift + Enter: run the current cell;
  • Esc + M: convert cell to markdown;
  • Esc + A: insert a cell above;
  • Esc + B: insert a cell below.
  • Esc + D D: delete a cell
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain more about the difference between code and markdown cells?

What are some common use cases for Jupyter Notebook?

How do I troubleshoot if Jupyter Notebook doesn't open in my browser?

Awesome!

Completion rate improved to 1.96

bookJupyter Notebook Basics

Swipe to show menu

Jupyter Notebook is a powerful platform that not only runs code but also helps organize complex code blocks in a clear and structured way. Easy to use and widely adopted across industries, Jupyter Notebook enables developers and data scientists to inspect, test, and present large portions of code efficiently, making their work more ergonomic, scalable, and production-ready.

Installing and Running Jupyter Notebook

Jupyter Notebook is included in Anaconda but can also be installed separately via pip.

pip install notebook

To launch Jupyter Notebook, open a terminal or command prompt and run:

jupyter notebook

This will open Jupyter in your web browser, displaying the Notebook Dashboard, where you can create and manage notebooks.

Basic Operations in Jupyter Notebook

1. Creating and Running Cells

  • Jupyter notebooks are made up of cells that can contain code or markdown;
  • To run a cell, press Shift + Enter or click the Run button.
# Example: Running a simple Python cell
print("Hello, Jupyter!")

2. Markdown for Text Formatting

Jupyter supports Markdown for adding text, equations, and documentation. To create a Markdown cell, change the cell type from Code β†’ Markdown in the toolbar.

#This is a Heading
**Bold Text**  
*Italic Text*  
- Bullet Points

3. Saving and Exporting Notebooks

  • Click File β†’ save and checkpoint or press Ctrl + S to save your work;
  • Notebooks can be exported as .py, .html, .pdf, or Markdown via File β†’ Download As.

Keyboard Shortcuts for Efficiency

  • Shift + Enter: run the current cell;
  • Esc + M: convert cell to markdown;
  • Esc + A: insert a cell above;
  • Esc + B: insert a cell below.
  • Esc + D D: delete a cell
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
some-alt