Show Python code in app mode #792
-
We would like to use Marimo as interactive documentation for our project, and I would like to show the Python code used in the cell when in app mode. The current way to do this is to copy/paste the code into a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi, great question. You can use
Then, when the notebook opens, click the "show code" button in the top right to reveal the code. If it helps, we can consider making code shown by default when Example: After clicking the button: |
Beta Was this translation helpful? Give feedback.
-
Is there way to show code when mounting the marimo app as part of another FastAPI app? |
Beta Was this translation helpful? Give feedback.
Hi, great question. You can use
--include-code
at the CLI:marimo run my_notebook.py --include-code
Then, when the notebook opens, click the "show code" button in the top right to reveal the code. If it helps, we can consider making code shown by default when
--include-code
is passed.Example:
After clicking the button: