Adding New Notebooks#
Overview#
The .py files in this directory are auto-generated from .ipynb files. Only edit the .ipynb files.
To regenerate .py files:
make build-molabs
Preprocessing logic: docs/docs_tools/education/
Things to consider#
To ensure compatibility with both Google Colab and Marimo/Molab:
1. No inline comments#
Bad: x = 5 # comment
Good: Separate line comments
Why: marimo convert scatters inline comments
Workflow#
- Create/edit
.ipynbin the course folder - Follow guidelines above
- Run
make build-molabsto generate.pyfiles - Test both versions (Colab and Molab)
- Commit both
.ipynband.pyfiles - Make changes to the processing logic in
docs/docs_tools/education/if necessary.