This repository holds the resources for the Part II Computational Physics run by Professor Austen Lamacraft at Cavendish Laboratory, University of Cambridge.
- Install Quarto
- Install the Quarto integration for your editor of choice
- Set up a virtual environment
python -m venv .venv
- Activate the environment
- UNIX:
source .venv/bin/python
- VSCode:
Python: Select Intepreter
→ Select the local virtual environment
- UNIX:
- Install the requirements:
pip install -r requirements.txt
- Render the Quarto book using your Quarto integration. The VS Code extension has a
Render Project
command, which will open a preview server in VS Code. However, note that this uses the optionno-watch-inputs
which won't watch for changes to the files. Strangely, if you just useRender
it will render the current file and will take the defaults from_quarto.yml
, i.e. watch inputs and no browser. But you won't be able to switch to live preview of another file. Alternatively, stopquarto preview
after the live server has opened and then restart it from the command line with no options to use the options in_quarto.yml
.