Demo 1: Jupyter Notebooks Basics

File: demo1_jupyter_basics.ipynb

Objective: Get comfortable with Jupyter notebooks in VS Code - creating, running, and managing notebooks.

Key Concepts: Notebook interface, cell execution, kernel management, git safety

Step 1: Create Your First Notebook

  1. Open VS Code
  2. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  3. Type "Jupyter: Create New Jupyter Notebook"
  4. Save as demo1_jupyter_basics.ipynb in the demo folder

What this demonstrates: VS Code's Jupyter integration makes notebooks feel like native code files

Step 2: Code and Markdown Cells

Create a markdown cell (click + Markdown or change cell type):

# My First Data Analysis

This notebook demonstrates:
- Loading data
- Basic exploration
- Simple visualization

Create a code cell below it:

# Import libraries
import pandas as pd
import matplotlib.pyplot as plt

print("Setup complete!")

Run the cell with Shift+Enter

What this demonstrates: Notebooks mix documentation (markdown) with executable code, perfect for analysis storytelling

Step 3: Magic Commands in Action

Create a new code cell:

# Display plots inline
%matplotlib inline

# Check working directory
%pwd