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

bookJupyter Notebook Basics

Jupyter Notebook proves a powerful platform to not only run code, but also to ensure better sandwiching of larger, more sophisticated – or rather intimidating – code blocks. Effortless and easy-to-use, Jupyter Notebook is praised across industries to inspect large chunks of code, ensuring its ergonomic, scalable and industry 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

Summary

  • Jupyter Notebook allows for an interactive coding experience.
  • You can run Python code and use Markdown for documentation.
  • Keyboard shortcuts make navigation and execution efficient.
  • Notebooks can be saved and exported for sharing or later use.
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 3

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

What are some common issues users face when starting with Jupyter Notebook?

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

How can I organize my notebooks for larger projects?

Awesome!

Completion rate improved to 1.89

bookJupyter Notebook Basics

Deslize para mostrar o menu

Jupyter Notebook proves a powerful platform to not only run code, but also to ensure better sandwiching of larger, more sophisticated – or rather intimidating – code blocks. Effortless and easy-to-use, Jupyter Notebook is praised across industries to inspect large chunks of code, ensuring its ergonomic, scalable and industry 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

Summary

  • Jupyter Notebook allows for an interactive coding experience.
  • You can run Python code and use Markdown for documentation.
  • Keyboard shortcuts make navigation and execution efficient.
  • Notebooks can be saved and exported for sharing or later use.
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 3
some-alt