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
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)
Good idea. For the time being, I could use an environment var, then I don't have to change the code.
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