apahl
apahl10mo ago

Some cells hidden in app-mode

Is there a possibility to have some cells containing markdown code (mo.md(...)) not show up in App mode? Background: I have structured the boilerplate part of my marimo Notebook with these cells for easier navigation (cells like "## Imports", "## Functions", and so on) and I would like to see these cells only in Editor mode, not in App mode.
3 Replies
Myles Scolnick
Myles Scolnick10mo ago
Not currently. You can maybe put a Boolean flag in your code and have it hidden based on that. That would require you to flip the flag yourself, but we plan to add url parameters or cli parameters that you can consume (and use that as your flag)
apahl
apahlOP10mo ago
Good idea. For the time being, I could use an environment var, then I don't have to change the code.
mcburton
mcburton10mo ago
What about the opposite? Showing the code on certain cells in app mode? Or is there a way to reference a cell and its source to display in a separate markdown cell? I guess I could do run with show code enabled and move cells I don't want to highlight to the bottom of the notebook