- In Markdown cells, use the
$$,$$ $$environments for equations. - References are listed in the markdown cell at the bottom of each notebook.
pip3 install jupyter-book ghp-import jupytext-
Write a jupyter notebook. Your notebook must be placed under the
srcdirectory with a name*_py.ipynb(python) or*_jl.ipyb(julia). -
Convert the notebook to a MyST markdown file.
jupytext --to md:myst notebook_py.ipynb- Make html files
The following command builds html files.
make build- Convert a MyST markdown file to a notebook:
jupytext --to ipynb notebook_py.md-
Update the notebook using jupyter notebook/lab
-
Convert the notebook file to a Markdown file:
jupytext --to md:myst notebook_py.ipynbBefore commiting a new MyST Markdown file, update the header of all Markdown files:
make update_headerThen, you will be ready to commit updated files.
make uploadWe recommend to use VSCode + Docker to build HTML files.
-
Make sure you have Docker and VSCode installed.
-
Install the
Remote - Containersin VSCode Extensions. -
Go to the repository and open it in VS Code.
cd /path/to/this/repository
code .
- To use Docker with VS Code, execute the following command.
ln -s .dev/devcontainer .devcontainer
- Press the green mark at the bottom left and press
Reopen in Containerfrom the command palette. After the build is finished, you can enter the Docker container.
You can add references to references.bib.