Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The default: write in MyST .md

For most Neuromatch tutorials, write in MyST .md. CI converts these to .ipynb automatically for Colab and Kaggle. Benefits:

When to author directly in .ipynb

Use .ipynb directly when:

How CI handles both sources

The scripts/convert_to_notebooks.py script (covered in Day 3) handles both:

  1. From .md — converts with jupytext, then injects Colab/Kaggle badges

  2. From .ipynb authored directly — injects badges only, copies to notebooks/

In both cases the source file in tutorials/ is never modified.

Practical rule

If in doubt, write .md. Use .ipynb only when you need stored outputs from expensive computation or complex widget state.

Placing .ipynb files in the TOC

If you author a .ipynb directly, place it in tutorials/<day>/ and add it to myst.yml just like a .md file:

- file: tutorials/W2D1_MyTopic/W2D1_Tutorial1.ipynb

MyST handles both formats identically in the TOC.