Conversation
Introduces `_mo.py` as an optional naming convention for marimo notebooks to enable tooling while preserving Python compatibility.
|
Thanks for writing this up! I see some of the benefits. In my gut reaction, I have an aesthetic objection, as the special suffix ( |
|
I don’t mind the idea, but the benefits aren’t 100% clear. What other tools could make the marimo experience better with such a convention? Also, you mention |
I agree re: aesthetics it is unfortunate. That said, while marimo notebooks are technically Python programs, there's enough practical distinction that some acknowledgment through guidelines/conventions might be worth considering - it is tedious/error prone to author a new marimo notebook outside of marimo app (maybe lsp helps here); you often want different or to ignore linting rules for your marimo notebooks compared to other Another option would be to wait and see what conventions emerge naturally (like putting notebooks in a
The main benefits relate to compatibility with tools outside the marimo editor. For example, you might want different linting rules for notebooks or to ignore them from certain rules (easy to glob with |
|
Just adding to the conversation. Internal naive identification is done with:
But these aren't required to be "marimo" notebooks. There's be no current typical naming convention but we use I'm not opposed to this idea, but I wonder if it's something where we need to have an opinion. Even without an internal marimo change, I think taking an official stance would require us adhering to a naming convention. It's not clear how much gained vs letting teams chose their own convention; I personally just use a Even though marimo notebooks are now loaded via static parsing with an expected fileformat, I would argue that's more of a security guard rail added with the introduction of If marimo behavior were to bifurcate from python behavior (say allowing scripts to be run non-linearly), then I would advocate for I would like to see the marimo spec formalized a bit more- maybe giving codes to our current file format "violations", (maybe in flake8 or other standard) before considering how other tools will detect marimo. I think we can to commit to standardization without a required naming convention |
Introduces
_mo.pyas an optional naming convention for marimo notebooks to enable tooling while preserving Python compatibility and general "just Python" vibe.Thanks for kickstarting the conversation @willingc, @lucharo