Why are Pyquil examples stored as .ipynb instead of .md files? #2295
-
Nearly all our examples are stored in Github as .md (Markdown) files, but I noticed that these two Pyquil examples are stored as .ipynb (Python notebooks): I saw that pyquil notebooks are excluded from the docs build in this conf file: Line 133 in 37a202b |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is a really good question that's not very obvious from looking at our documentation build systems/processes. I'll try my best to give an overview. Our documentation is written in a flavor of markdown called MyST which is purpose-built for scientific and computational documents. In particular, it is a great format for pages which generate content (i.e. plots, figures, tables, etc) but that content should not be checked in to version control. This allows us to keep notebooks in So the question remains: why are these two pyquil demos in That said, you may have noticed that when you run Lines 131 to 133 in 37a202b As far as I can tell, setting the environment variable is not currently documented.3 The "proper" documentation build workflow is laid out in code in the github actions which is run on the mitiq/.github/workflows/build.yml Lines 52 to 67 in 37a202b Hopefully this is helpful. Happy to answer any questions. The documentation build system is complicated. Footnotes |
Beta Was this translation helpful? Give feedback.
This is a really good question that's not very obvious from looking at our documentation build systems/processes. I'll try my best to give an overview.
Our documentation is written in a flavor of markdown called MyST which is purpose-built for scientific and computational documents. In particular, it is a great format for pages which generate content (i.e. plots, figures, tables, etc) but that content should not be checked in to version control. This allows us to keep notebooks in
git
while not having to deal with the messiness that comes with diff-ingipynb
files.1So the question remains: why are these two pyquil demos in
ipynb
format? In order to run these notebooks, you need to have t…