Get help from the marimo community

Updated 3 weeks ago

How to launch in edit mode without automatic execution?

At a glance

A community member coming from Jupyter notebooks expects to be able to open a notebook and execute cells as they read them. However, when they opened an auto-converted notebook with marimo, the entire notebook executed. The community member is unsure if this is the expected behavior for a full notebook to execute when opened in edit mode, and is asking how to change this behavior.

The comments indicate that the community member should be able to disable autorun on startup through the settings page or the bottom left of the notebook. It is unclear if this is sufficient or if the community member is looking to programmatically disable it when running marimo edit.

Useful resources
Folks coming from Jupyter notebooks (including me) expect to be able to open a notebook an execute cells as we read them. When I opened an auto-converted notebook with marimo, the entire notebook executed. Is it expected behavior for a full notebook to execute when opened in edit mode? If so, how can I change this behavior?

TIA for the help!
Marked as solution
Got it! idt that's supported atm, but I would suggest modifying the pyproject.toml file when you share the notebook. Helps to centralize your team's config.

Plain Text
[tool.marimo.runtime]
auto_instantiate = false
View full solution
S
R
5 comments
https://docs.marimo.io/guides/configuration/runtime_configuration/
You should be able to disable autorun on startup through the settings page or the bottom left of the notebook. Is this sufficient or are you looking to programmatically disable it when running marimo edit
Thanks for the response, @Shahmir!

Ideally I'd have a way to disable with a command line argument to marimo edit. That way I can tell my physicist colleagues how to launch example notebooks in a way that won't surprise them.
(Sorry for my delayed reply, by the way.)
Got it! idt that's supported atm, but I would suggest modifying the pyproject.toml file when you share the notebook. Helps to centralize your team's config.

Plain Text
[tool.marimo.runtime]
auto_instantiate = false
That'll do! Thanks, Shahmir πŸ™‚
Add a reply
Sign up and join the conversation on Discord