Python Setup (Jupyter / VS Code)
To start coding in Python, students need both the Python language installed and an editor or environment to write their code. Two beginner-friendly tools widely used in data analysis and development are Jupyter Notebook and Visual Studio Code (VS Code).
Installing Python
- First, download Python from python.org and install it on your system.
- During installation, check the option that says “Add Python to PATH”—this ensures you can run Python from any folder on your computer.
- You can confirm Python is installed by running
python --version
in your terminal or command prompt.
Jupyter Notebook (Best for Learning & Data Work)
- Jupyter Notebook is part of the Anaconda distribution, which includes Python, Jupyter, and other data science tools.
- It lets you write code in small cells, run each block, and immediately see the output. You can mix code with text (Markdown) to explain your logic.
- Ideal for data exploration, analysis, and step-by-step learning.
Example cell structure:
Visual Studio Code (Best for Larger Projects)
- VS Code is a lightweight, powerful code editor that supports Python with the help of extensions.
- After installing VS Code, install the Python extension from the Extensions Marketplace.
- You write Python in
.py
files and run the code using the terminal or built-in run options. - Great for structured code development, project folders, and version control (like Git).
Example view in VS Code:
When to Use What?
Use Case | Jupyter Notebook | VS Code |
---|---|---|
Learning Python Basics | ✅ Yes | ✅ Yes |
Data Analysis & Charts | ✅ Best choice | ❌ Less visual |
Building Python Projects | ❌ Limited support | ✅ Best suited |
Combining Code & Notes | ✅ Markdown + Code | ❌ Needs extra tools |