Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

General guidance

Downloading notebooks

For lecture slides / labs, download the page as a notebook to work with it locally.

  1. Open the page for the Homework/Lecture on this site.

  2. Hover over the download icon (⬇️) in the toolbar at the top.

  3. Click .ipynb.

  4. Feel free to move the file wherever you like.

  5. Open the notebook in VSCode.

That is now your own copy; you can execute/add cells as you like, including adding your own notes in Markdown cells. For Labs, the intention is for you to turn in the template via Gradescope, filled in with your code.

Activate the environment

(in the Terminal)

  1. Open the working folder in VSCode.

  2. Open a terminal in VSCode.

  3. Activate the environment, if it isn’t already.

It should then show (.venv) at the beginning of your terminal prompt.

Installing packages

This will need to be done any time you add packages. Avoid using pip install [package].

  1. Activate the environment.

  2. Add packages to a requirements.txt file.

  3. Install the packages.

    pip install -r requirements.txt

Common issues

Jupyter in VSCode

This was set up in Lecture 16.

We’ve run into issues with being unable to select the kernel. Try each of the following:

Jupyter Book

This was set up in Lab 8.

Not displaying properly

If your published site looks like this:

Jekyll site

No navigation, search, etc.

and you see a pages-build-deployment under your Actions:

GitHub Pages default Action
  1. Go through the instructions again.

  2. Commit and push a change.

    • It can be small.

  3. After build, confirm your site has navigation similar to this:

    Jupyter Book

Submission

You will submit via Gradescope.