Ignore cell on export #9428
|
Hi, in my Marimo notebook I have the following cell: which launches a separate program (the interactive viewer Napari). |
Replies: 1 comment
|
You can disable that cell — marimo skips disabled cells (and any cells downstream of them) whenever it runs the notebook, including on export, so it won't get stuck launching Napari. In the editor, open the cell's context menu (the ⋮ in the cell's top-right, or right-click the cell) and pick "Disable cell". marimo persists that as One thing to watch: guarding the call with |
You can disable that cell — marimo skips disabled cells (and any cells downstream of them) whenever it runs the notebook, including on export, so it won't get stuck launching Napari.
In the editor, open the cell's context menu (the ⋮ in the cell's top-right, or right-click the cell) and pick "Disable cell". marimo persists that as
@app.cell(disabled=True)in the notebook file, andmarimo export html(alsomd/ipynb) will then run straight past it.One thing to watch: guarding the call with
mo.app_meta().modewon't help for export —marimo export htmlruns the notebook in edit mode to capture outputs, somodeis still"edit"there. Disabling the cell is the reliable way to keep it out of th…