Hiding markdown
Another question: can I hide the code or just have a way to say - like in jupyter - "this cell only contains text that should be rendered with
mo.md
"? It becomes a bit hard on the eye to edit4 Replies
Yea, I totally get that, great suggestions.
1. Hiding code is coming, but we don't have it yet. For now you can fold the code by clicking on the little arrow in the gutter, to the left of
mo.md
.
2. We don't have markdown-only cells, since in marimo it's common to mix markdown and Python (including interpolating Python values into markdown). We will consider prioritizing this --- thank you for the suggestion!Here's an example of code folding:
Oh right, thanks! 🙂 a "markdown only cell", like in Colab, could be a cell whose content is just a string that is automatically put inside
mo.md
. I reckon it's a bit of work for the frontend especially.That makes sense! We could potentially design something like that in the future. Definitely see its value!