Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Jupyter Notebook Basics | Section
Python Math Module Essentials: Trigonometry, Logarithms, and Constants - 1769704232288

Jupyter Notebook Basics

Scorri per mostrare il 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
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 2

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Sezione 1. Capitolo 2
some-alt