Python Installation & IDE Setup#
This page covers local Python installation and IDE setup. If you just want to try the notebooks without installing anything, use Google Colab as described in the Getting Started chapter.
Python Installation#
Download and install the latest Python version from the official website:
Windows#
Download the installer from python.org
Important: Check “Add Python to PATH” during installation
Open a terminal and verify:
python --version
macOS#
Download the installer from python.org or use Homebrew:
brew install python
Verify:
python3 --version
Linux#
Python is usually pre-installed. To install or update:
sudo apt update
sudo apt install python3 python3-pip python3-venv
Choose an IDE#
An IDE (Integrated Development Environment) helps you write, run, and debug code more efficiently.
Visual Studio Code#
Best for: General-purpose development, web projects, or if you work with multiple languages
Free, lightweight, and highly extensible via plugins
Download: code.visualstudio.com
Install the Python extension for syntax highlighting, IntelliSense, and Jupyter support
Built-in terminal and Git integration
PyCharm#
Best for: Larger Python projects, software engineering, and teams
Download (free and paid tiers): jetbrains.com/pycharm
Powerful refactoring tools, built-in debugger, and project-wide code navigation
Tip
Not sure which to pick? Choose VS Code if you want flexibility and plan to do more than just Python, PyCharm if you’re building larger applications or working in a team. VS Code runs Jupyter Notebooks directly in the editor.
Using Jupyter Notebooks Locally#
In VS Code#
Open a
.ipynbfile or create a new one viaCtrl+Shift+P→ “Create: New Jupyter Notebook”Select a Python kernel (interpreter) from the top-right dropdown
Run cells with
Shift+Enter
In JupyterLab#
Install JupyterLab:
pip install jupyterlabStart it:
jupyter labCreate a new notebook from the launcher