Highlights ⭐
- Latex completions in markdown mode
- Environment variables are automatically loaded dot-env files (e.g. `.env`) next to your `pyproject.toml`. You can customize this with:
toml
[tool.marimo.runtime]
dotenv = [] don't load any
dotenv = [".env"] default
dotenv = [".env", ".env.production"] load multiple
- Support for using argparse and simple-parsing in marimo notebooks: letting you make notebooks that double as scripts with help messages and argument validation. See [our examples](https://github.com/marimo-team/marimo/tree/6f8d6cb94c6f1d9a85f5abfc04208cbbd0a1d179/examples/running_as_a_script) and [documentation](https://docs.marimo.io/guides/scripts/) to learn more.
This feature was contributed by lucharo!
Breaking changes
1. This release contains a small breaking change. `sys.argv` is now patched to the args after the marimo command
For example, for
bash
marimo edit notebook.py -- foo bar -baz 42
`sys.argv` would be set to
bash
["notebook.py", "foo", "bar", "-baz", "42"]
2. Environment variables are loaded from your `.env` by default. This can be removed through configuration.
What's Changed
* docs: cli arguments by akshayka in https://github.com/marimo-team/marimo/pull/4304
* docs: update intro.py by GadgetSteve in https://github.com/marimo-team/marimo/pull/4259
* fix: create public folder and then file by Light2Dark in https://github.com/marimo-team/marimo/pull/4299
* feat: argparse support when running as a notebook by akshayka in https://github.com/marimo-team/marimo/pull/4306
* improvement: format using popover for long strings by Light2Dark in https://github.com/marimo-team/marimo/pull/4298
* feat: utf-8 latex completions by mscolnick in https://github.com/marimo-team/marimo/pull/4302
* feat: Automatically loading env vars using dotenv + specify custom env files by lucharo in https://github.com/marimo-team/marimo/pull/4280
* improvement: start of secrets handling in the kernel by mscolnick in https://github.com/marimo-team/marimo/pull/4301
* improvement: dataflow perf by mscolnick in https://github.com/marimo-team/marimo/pull/4313
* docs: hstack width examples by mscolnick in https://github.com/marimo-team/marimo/pull/4314
* improve: stale indicator precedence over error by akshayka in https://github.com/marimo-team/marimo/pull/4321
* fix: markdown details justification by akshayka in https://github.com/marimo-team/marimo/pull/4322
* fix: clamp wide elements in slides by Light2Dark in https://github.com/marimo-team/marimo/pull/4325
New Contributors
* GadgetSteve made their first contribution in https://github.com/marimo-team/marimo/pull/4259
* lucharo made their first contribution in https://github.com/marimo-team/marimo/pull/4280
**Full Changelog**: https://github.com/marimo-team/marimo/compare/0.11.31...0.12.0