Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
giswqs
GitHub Repository: giswqs/geemap
Path: blob/master/docs/workshops/jupytext.toml
2313 views
1
# Install jupytext using: conda install jupytext -c conda-forge
2
# Always pair ipynb notebooks to md files.
3
# formats = "ipynb,md"
4
formats = "ipynb,myst"
5
6
# jupytext --to ipynb *.md # convert all .md files to notebooks with no outputs
7
# jupytext --to ipynb --execute *.md # convert all .md files to notebooks and execute them
8
# jupytext --set-formats ipynb,md --execute *.md # convert all .md files to paired notebooks and execute them
9
# jupytext --to md *.ipynb # convert all .ipynb files to .md files
10
# jupytext --to myst *.ipynb # convert all .ipynb files to myst files
11
12
# convert notebooks to rst https://nbconvert.readthedocs.io/en/latest/usage.html#convert-rst
13
# jupyter nbconvert *.ipynb --to rst
14
# convert md to rst: m2r *.md
15
16