Coding Jupyter Notebooks for Fall 2026 Iteration of CS 170
There are two ways that you can access the notebook.
-
On Datahub: click here and navigate to the corresponding folder.
-
On Local Machine: Follow the instructions below for initial local setup.
- Install Anaconda following the instructions here.
- Open up your terminal.
- Create a conda environment (with python 3.14):
conda create -n cs170 python=3.14
You might also need to run conda init [shell_name] with the shell you use and re-open the terminal.
- Activate the environment:
conda activate cs170
- Install pip:
conda install pip
- Install jupyter:
conda install jupyter
- Clone this repository somewhere in your device:
git clone https://github.com/Berkeley-CS170/cs170-fa26-coding
- Once you're done, deactivate the conda environment to return to your default environment:
conda deactivate
- Yay you're done with local setup!
- Make sure that you've completed the initial local setup above.
- Open up your terminal
cdinto your specific coding homework directory, e.g.:
cd <wherever your homework lives>/cs170-fa26-coding/hw03
- Activate the
cs170conda environment you created during initial local setup:
conda activate cs170
- Install all python package requirements for that homework:
pip install -r requirements.txt
If there isn't a requirements.txt file in the coding homework directory, you can skip this step.
- Start up a local jupyter notebook server by running
jupyter notebook
- Navigate to the jupyter notebook for the assignment and complete it! Good luck :D
- Yay you finished your coding homework for the week! If you want, deactivate the conda environment to return to your default environment:
conda deactivate