Press ESC to close

What is Jupyter Notebook?

  • Why use Jupyter Notebook?
     
    • 📝 Write and run code one cell at a time.
    • 📊 Display charts, tables, and visualizations.
    • 📖 Combine code, text, images, and equations in one document.
    • 🐞 Easier to debug and experiment with code.
    • 🤖 The preferred environment for Data Science, Machine Learning, and AI.
       
  • Install Jupyter Notebook using Pip
pip install notebook
  • Start Jupyter Notebook
jupyter notebook

  OR

python -m notebook

This will open Jupyter Notebook in your default web browser.

  1. Create Your First Notebook
     
    • Click New → Python 3 (or your installed Python version).
    • In the first cell, type:
print("Hello, World!")

 2. Press Shift + Enter to run the cell.

Output:

Hello, World!

Useful Keyboard Shortcuts

ShortcutAction
Shift + EnterRun current cell
Ctrl + EnterRun cell without moving
AInsert cell above
BInsert cell below
D, DDelete selected cell
MConvert to Markdown
YConvert to Code


Recommendation: If you're learning Python for AI, Machine Learning, or Data Science, Jupyter Notebook is an excellent place to start. Later, as you build larger applications, you can transition to VS Code.

Related Posts

How to installation python ?
Why Python is popular in AI?

Leave a comment

Your email address will not be published. Required fields are marked *

Your experience on this site will be improved by allowing cookies.