You are encouraged to set up your computer before the end of the first week of the class.
Terminal/CLI
Python
Download and install Python (choose one minor version1 behind the current version; e.g., if the current version is 3.13, download 3.12 instead).
venv and pip
A Python virtual environment keeps specific Python version and required software dependencies of a project separate from the system-installed Python and packages. Inside your project folder, create a virtual environment by issuingpython3.12 -m venv .venv
2 in the command line. To activate the venv, issuesource .venv/bin/activate
and your will see(.venv)
in the front of the shell prompt denoting the venv activated.
Withvenv
activated, usepip
, the package managemnet software for Python, to install packages and the packages will be installed in.venv/lib/python<i>VERSION</i>/site-packages
.
VS Code
Download and install the most recent stable build of Visual Studio Code (VSCode/VS Code), an extension-based code editor. Learn how to set up VSCode by watchign a video such as Setup Visual Studio Code.
Jupyter Notebook
With venv enabled, install jupyter Notebook withpip install notebook
. Toe run the notebook, go to the command line, change into your Jupyter Notebook project directory, and runjupyter notebook
. You should see the project directory open in browser. Click onNew
–>Python3(ipykernel)
to create a new notebook.
Git and GitHub
- Create an account on GitHub.
- Send your Github username to your instructor.
- Once your instructor adds you to the course GitHub organization, you will receive an email asking you to join the organization. Accept the invitation.
- Go to github.com and click on the drop down with your name in the upper left corner. You should see the name of the course GitHub organization.
Issuegit --version
at terminal to check if git is installed. If not,
- go to git-scm.com, download and install git; or
- Depends on your operating system:
- Linux:
sudo apt install git
for Debian/Ubuntu andsudo yum install git
for Fedora. - macOS:
brew install git
(install Homebrew first). - Windows: use Git for Windows.
- Linux:
SQL
Download and install DB Browser for SQLite
Notes:
-
Semenatic Versioning suggests version numbers in the format of MAJOR.MINOR.PATCH and each segment increments in specific conditions. See semver.org for more information about versioning. ↩
-
.venv
is a convention and you can name the virtual environment folder anything you want. Note thatpython3.12 -m venv .venv
will create the venv with Python version 3.12 whereaspython -m venv .venv
will create the venv with the version of your system default Python. Here-m
means “module” so you know that here python is running thevenv
module to create a virtual environment. ↩