Course materials and documentation for DS2002
If you have a Windows computer, go to the Windows setup instructions.
Note: If you are new to programming and are not familiar with installing programming tools on your computer, I highly recommend skipping this step and using GitHub Codespaces instead. This will allow you to get started immediately without the hassle of troubleshooting any setup issues.
However, if you want to set up an environment for class work on your own computer, here are the basic steps.
To set up your own computer for all course activities I highly encourage you to install all the python packages in a new environment. Think of an environment as an isolated area to install the software packages you need for a specific project, i.e. in this case the course activities. Packages in an environment are isolated from other software packages on your computer.
Download and install Visual Studio Code from the official website. Follow the platform-specific installation instructions for your operating system (macOS or Linux).
MacOS and Linux have terminal applications pre-installed. So you won’t need Git-Bash. Follow these steps to install miniforge for Python.
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
Note: For some specific macOS architectures (like Apple Silicon/arm64), the command might be slightly different; you can check the Miniforge GitHub page for direct links if the automatic detection fails.
bash Miniforge3-$(uname)-$(uname -m).sh
Alternatively, if the automatic detection in the filename does not work, you can use a fixed filename after downloading it, for example:
bash Miniforge3.sh
Follow the prompts: The installer will guide you through the process.
yes to accept the terms.yes.(base) in your terminal prompt, indicating the Miniforge base environment is active.conda list
mamba env create -n ds2002 -c conda-forge python=3.11 htop jq awscli curl wget git zip unzip tar redis-server redis-py mongodb
Run the command conda activate ds2002 to activate the environment, then run conda list. You should see a list of installed packages, and your prompt should show (ds2002) at the beginning, confirming that the ds2002 environment is active.
Note: The first step when opening a new terminal is to run conda activate ds2002. If your Mac is using zsh and throws an error, you can use source activate ds2002 instead. You can add that command to the ~/.bashrc (or .zshrc) file if you wish.
Please be aware that we have limited bandwidth to guide you through fixing broken installations on your computer. If installations fail, you can always go back to using GitHub Codespaces.