Jupyter Notebooks

Python - A Quick Start for existing Programers

2 min read

Published Sep 16 2025, updated Sep 30 2025


21
0
0
0

Python

A Jupyter Notebook is an interactive environment for writing and running code alongside text, visualisations, and media. It’s widely used for data science, machine learning, research, prototyping, and teaching. It allows a mixing of interactive code sections and fully formatted mark down sections for documenting and presenting projects.


jupyter notebook screenshot
Basic example showing formatting and code blocks




Key Features

  • Interactive code execution.
  • Cells: documents are split into “cells” that can contain code, markdown, or raw text.
  • Rich output: supports tables, charts, images, LaTeX math, and interactive widgets.
  • Mixing code + explanation: perfect for tutorials, experiments, and reports.
  • Export options: save as .ipynb (notebook format) or export to HTML, PDF, Markdown.



Benefits

  1. Experiment quickly — run small code snippets without restarting the whole script.
  2. Readable reports — combine code, results, and documentation in one file.
  3. Visualisation-friendly — integrates well with libraries like matplotlib, seaborn, plotly.
  4. Reproducible workflows — notebooks can be shared so others can re-run the analysis.
  5. Widely supported — used in data science, academia, and industry.



Using Jupyter in VS Code

Prerequisites:

  • Python (3.x installed on your system)
  • VS Code (latest version)

Inside VS Code:

  1. Open Extensions (Ctrl+Shift+X or ⇧⌘X on macOS)
  2. Install:
    • Python extension (by Microsoft in the Extensions Marketplace)
    • Jupyter extension (also by Microsoft)

Install Jupyter Package:

pip install notebook jupyter

Open / Create a Notebook:

  • Open a .ipynb file in VS Code or
  • Create a new one:
    File → New File → Jupyter Notebook
    (or create a .ipynb file directly)

Select Your Python Kernel:

At the top right of the notebook editor in VS Code, you’ll see a kernel picker, Choose the Python environment (venv/conda) you want to run code in.


Run cells:

  • Each notebook cell has a ▶ Run button (or use Shift+Enter).
  • Outputs (text, tables, charts, errors) appear directly below the cell, just like in the browser version.




Markdown

Here is a list of the different formatting options that are available to be used in the mark down sections of the notebooks:

Headings:
# H1
## H2
### H3
#### H4
##### H5
###### H6

Text styles:
*Italic*
_Italic_
**Bold**
__Bold__
~~Strikethrough~~

Unordered list:
- Item 1
- Item 2
  - Sub-item 2.1
  - Sub-item 2.2
- Item 3

Ordered list:
1. First
2. Second
   1. Nested
   2. Nested
3. Third

Links and Images:
[OpenAI](https://openai.com)

Inline image:
![Alt text](https://via.placeholder.com/150)

Inline code: `print("Hello")`

Block code (fenced, with language for syntax highlighting):
```python
def hello():
    print("Hello, world!")

hello()
```

Blockquotes:
> This is a blockquote
>> Nested blockquote

Horizontal line:
---

Tables:
| Name | Age | Role |
|--------|-----|-----------|
| Alice | 24 | Developer |
| Bob | 30 | Manager |

Task Lists:
- [x] Completed task
- [ ] Incomplete task

HTML support:
<div style="color: blue; font-weight: bold;">This is HTML inside Markdown</div>

Products from our shop

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet - Print at Home Designs

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Mouse Mat

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Travel Mug

Docker Cheat Sheet Mug

Docker Cheat Sheet Mug

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet - Print at Home Designs

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Mouse Mat

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Travel Mug

Vim Cheat Sheet Mug

Vim Cheat Sheet Mug

SimpleSteps.guide branded Travel Mug

SimpleSteps.guide branded Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript - Travel Mug

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Dark

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Embroidered T-Shirt - Light

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - White

Developer Excuse Javascript Mug - Black

Developer Excuse Javascript Mug - Black

SimpleSteps.guide branded stainless steel water bottle

SimpleSteps.guide branded stainless steel water bottle

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Light

Developer Excuse Javascript Hoodie - Dark

Developer Excuse Javascript Hoodie - Dark

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact