pip3 install jupyter-book ghp-import jupytext
-
Write a jupyter notebook. Your notebook must be placed under the
src
directory 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
-
Sync the markdown file and the notebook.
jupytext --sync --to md:myst notebook_py.ipynb
Before commiting a new MyST Markdown file, update the header of all Markdown files:
make update_header
Then, you will be ready to commit updated files.
make upload
You can add references to references.bib
.