Choose your operating system
We use conda to make a separate Python environment called ids-2026. An environment is a set of packages for one project. We will install Jupyter Notebook in that environment and use it for the course.
If you already have a working conda installation, keep it. Open its Anaconda Prompt or terminal and start at “Create the course environment” in your section.
What the course environment contains
| Package | Typical use |
|---|---|
numpy, scipy | Arrays, mathematics, statistics, and scientific methods |
pandas, openpyxl | Tables, CSV files, and Excel files |
matplotlib, seaborn | Plots and data visualization |
scikit-learn, statsmodels, sympy | Basic machine learning, statistical models, and symbolic mathematics |
notebook, ipykernel | Jupyter Notebook and its Python kernel (the process that runs notebook code) |
Install on Windows 11
The simplest route is Anaconda Distribution on Windows. It installs Python and conda. You will use the Anaconda Prompt to create and run the course environment. VS Code is an optional editor. WSL is an optional way to run Linux on Windows.
Install Anaconda Distribution
Open the official Anaconda download page. Select Anaconda Distribution → Windows 64-Bit Graphical Installer. Download and open the
.exefile from Downloads. Follow the installer. Select Just Me if asked, keep the suggested location, and finish the installation. Use the standard options; there is no need to add Anaconda to the Windows PATH.If the download page asks for an account, follow its instructions or use “Skip to download” if offered.
Open Anaconda Prompt
Open the Windows Start menu, type Anaconda Prompt, and open it. Enter this command to check conda:
conda --versionYou should see a version number. The prompt may begin with
(base); that is normal.Create the course environment
Copy this full line into Anaconda Prompt. The download can take several minutes. When asked to proceed, type
yand press Enter.conda create -n ids-2026 python=3.12 numpy scipy pandas matplotlib seaborn scikit-learn statsmodels sympy openpyxl notebook ipykernel pipNext, activate the environment:
conda activate ids-2026The beginning of the prompt should now show
(ids-2026).Make a folder and open Jupyter Notebook
Run these commands in the same Anaconda Prompt, one line at a time. The first command goes to your home folder; the second makes a course folder.
cd /d "%USERPROFILE%" mkdir intro-data-science cd intro-data-science jupyter notebookA browser page should open. If it does not, copy the full
http://localhost:...address shown in Anaconda Prompt into your browser. Keep Anaconda Prompt open while you work.
Optional: edit notebooks in Visual Studio Code
Install Visual Studio Code. In VS Code, open Extensions and install the Microsoft Python and Jupyter extensions. Open your intro-data-science folder, then open or create a .ipynb file. Click Select Kernel at the top right and select the Python environment named ids-2026. Your normal browser-based Jupyter Notebook already works without VS Code.
Optional: use WSL (Ubuntu inside Windows)
WSL means Windows Subsystem for Linux. Use it if your instructor asks you to work with Linux commands. Open PowerShell as Administrator, enter the command below, and restart Windows if requested:
wsl --installLaunch Ubuntu from the Start menu. On first launch, make a Linux username and password; the password will not appear while you type. Then follow the Ubuntu section inside the Ubuntu terminal, including installing Anaconda again for Linux. The Windows Anaconda installation and the WSL Linux installation are separate. Keep course files in your Linux home folder when using WSL.
Install on macOS
First, find your Mac type: open the Apple menu → About This Mac. Look for Chip (Apple M series) or Processor (Intel). Then choose the matching installation step below.
Install conda for your Mac
Apple Silicon (M1, M2, M3, M4, or newer)
Use the official Anaconda download page. Select Anaconda Distribution → macOS → 64-Bit (Apple silicon) Graphical Installer. Open the downloaded
.pkg, follow the instructions, and finish. Open a new Terminal (press Command + Space, type “Terminal”, and press Enter).Intel Mac
New Anaconda Distribution installers for Intel macOS are no longer produced. Use Miniforge for Intel macOS instead. Download the Intel
x86_64.pkg, open it, follow the instructions, and select the option to initialize conda for your shell if offered. Open a new Terminal. Miniforge provides the samecondacommands used below, but its packages come from conda-forge.In Terminal, check the installation:
conda --versionYou should see a version number. If you see “command not found,” close Terminal, reopen it, and try again.
Create the course environment
Run the command below in Terminal. When asked to proceed, type
yand press Enter. This may take several minutes.conda create -n ids-2026 python=3.12 numpy scipy pandas matplotlib seaborn scikit-learn statsmodels sympy openpyxl notebook ipykernel pipActivate it:
conda activate ids-2026The prompt should show
(ids-2026).Make a folder and open Jupyter Notebook
Run these lines in Terminal:
mkdir -p ~/intro-data-science cd ~/intro-data-science jupyter notebookJupyter should open in your browser. If it does not, copy the full
http://localhost:...address from Terminal into the browser. Leave Terminal open while Jupyter runs.
Install on Ubuntu
Use a Terminal (often Ctrl + Alt + T). These steps also work in the Ubuntu terminal inside Windows WSL.
Download Anaconda Distribution
Most laptops use the
x86_64version. Check your computer first:uname -mIf the answer is
x86_64, copy these commands (one at a time). The filename below is the version in Anaconda’s Linux instructions at the time this guide was checked.cd ~ curl -O https://repo.anaconda.com/archive/Anaconda3-2026.07-1-Linux-x86_64.sh bash Anaconda3-2026.07-1-Linux-x86_64.shIf
uname -msaysaarch64, use the Linux ARM64 installer instead:cd ~ curl -O https://repo.anaconda.com/archive/Anaconda3-2026.07-1-Linux-aarch64.sh bash Anaconda3-2026.07-1-Linux-aarch64.shIf
curlis missing, install it withsudo apt updatefollowed bysudo apt install curl, or download the appropriate Linux installer from the official Linux instructions.Complete the installer
Press Enter to start reading the terms. Press Space to move through them; enter
yesif you agree. Press Enter to accept the default install location in your home directory. When asked whether to initialize conda, enteryes. Close Terminal and open a new one. Check the result:conda --versionA version number means conda is ready.
Create the course environment
Run this command. Type
yand press Enter when asked to proceed.conda create -n ids-2026 python=3.12 numpy scipy pandas matplotlib seaborn scikit-learn statsmodels sympy openpyxl notebook ipykernel pipActivate it:
conda activate ids-2026The prompt should show
(ids-2026).Make a folder and open Jupyter Notebook
Run these commands:
mkdir -p ~/intro-data-science cd ~/intro-data-science jupyter notebookA browser page should open. If it does not, copy the full
http://localhost:...address shown in Terminal and open it in your browser. In WSL, open that address in your Windows browser. Leave the terminal open while you work.
Make your first notebook
- In the Jupyter browser page, click New → Python 3 (ipykernel) or New Notebook, then choose the Python kernel. You should see an empty code cell.
- Paste the code below into that code cell. Press Shift + Enter to run it.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy import stats
x = np.linspace(0, 2 * np.pi, 100)
plt.plot(x, np.sin(x))
plt.xlabel("x")
plt.ylabel("sin(x)")
plt.show()
print("pandas version:", pd.__version__)You should see a sine curve and a pandas version number. This confirms that the main packages and the Jupyter kernel work.
- Rename the notebook to
first-notebook.ipynb(click its title), then save with Ctrl + S on Windows/Linux or Command + S on macOS. Your notebook is in the course folder. - When finished, save the notebook. In the terminal that started Jupyter, press Ctrl + C and confirm if asked. You can then close the terminal.
conda activate ids-2026, go to your course folder (cd /d "%USERPROFILE%\intro-data-science" on Windows; cd ~/intro-data-science on macOS/Ubuntu), then run jupyter notebook.Install another Python package
Use the same environment that runs your notebooks. First save your work and stop Jupyter with Ctrl + C in its terminal. Open Anaconda Prompt (Windows) or Terminal (macOS/Ubuntu) and activate your environment:
conda activate ids-2026For example, to install plotly, run:
conda install plotlyFor a different package, replace plotly with its installation name. Read the package’s official installation instructions if you are unsure of its name. If conda cannot find it in your current package source, you can try conda-forge:
conda install -c conda-forge plotlyIf the package is available only through pip, use python -m pip after activating the course environment. Example:
python -m pip install plotlyUse one of these commands for a package; you do not need to run all three examples. Prefer conda when it has the package. After adding a package, start Jupyter again and restart the notebook kernel so it sees the new installation.
(ids-2026). Install packages in the terminal, not with !pip install in a notebook cell. If you have used pip and a later conda install proposes many unexpected changes, ask the instructor for help.If something fails
| Problem | What to try |
|---|---|
conda is not recognized / command not found | Close and reopen Anaconda Prompt or Terminal. On Windows, use Anaconda Prompt, not a regular Command Prompt. Check that the installer finished. |
jupyter is not recognized / command not found | Run conda activate ids-2026, then conda install notebook ipykernel and try again. |
ModuleNotFoundError in a notebook | Check the notebook’s selected kernel. It must use ids-2026. Install the missing package in that environment and restart the kernel. |
| Jupyter browser page did not open | Copy the entire local URL printed by Jupyter in the terminal; it may include a token and may use a port other than 8888. |
| Download or install failed | Check your internet connection and storage space; repeat the command. Share the full error message and your operating system with the instructor if it still fails. |