Skip to content
Discussion options

You must be logged in to vote

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, and marimo export html (also md/ipynb) will then run straight past it.

One thing to watch: guarding the call with mo.app_meta().mode won't help for export — marimo export html runs the notebook in edit mode to capture outputs, so mode is still "edit" there. Disabling the cell is the reliable way to keep it out of th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlbertoFabbri93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants