github marimo-team/marimo 0.4.1

latest releases: 0.10.10, 0.10.9, 0.10.8...
8 months ago

What's Changed

Highlights

⚡️ Reactive module autoreloading. marimo now ships with the most advanced module autoreloader out of any interactive Python programming environment. When enabled (via the notebook settings menu), marimo automatically react to modifications made to packages and modules that your notebook imports. This lets you develop complex logic in Python modules, using an editor of your choice, and use the marimo notebook as a DAG or main script that orchestrates your logic.

Autoreloading comes in two flavors:

  • “detect”: automatically marks cells affected by module modifications as stale, letting you know which cells need to be re-run.
  • “autorun”: automatically re-runs cells affected by module modification.

Thanks @MartinBernstorff, @astrowonk for the feature request!

Command-line arguments. Give arbitrary command-line arguments to your notebook, and read them with mo.cli_args(): this works in edit and run modes, and also while running as a script.

  • marimo edit notebook.py -- -arg1=foo -arg2=bar
  • marimo run notebook.py -- -arg1=foo -arg2=bar
  • python notebook.py -arg1=foo -arg2=bar

Thanks @twrightsman for the feature request!

📄 Programmatic HTML export. Long requested, finally here: use marimo export html at the command-line to export your notebooks as beautiful documents:

  • to HTML: marimo export html notebook.py -o notebook.html
  • with CLI args: marimo export html notebook.py -o notebook.html -- -arg1=foo -arg2=bar

Thanks @egemenimre, @scls19fr, @bmeyers for the feature request!

🔎 Check if running in a notebook. Use mo.running_in_notebook() to tell whether Python is executing inside a marimo notebook. Use this when developing library code that integrates with marimo, or to tell whether your notebook file is running via the notebook kernel or as a Python script.

P.S. Check out our new guide on integrating your objects with marimo.

Full changelog

New Contributors

Full Changelog: 0.4.0...0.4.1

Don't miss a new marimo release

NewReleases is sending notifications on new releases.