Marimo export to jupyter notebook
hi i'm trying to use marimo to convert our current juypter notebooks. I've started to do so but i have a question about the interoperability between them.
I'd like to write notebooks in then convert them and run a juypter notebook. My company tooling around automated reports that i'd like to leverage while getting the benefits of marimo's reproducibility
6 Replies
hi have been experimenting w/ marimo and running into a couple issues w/ ^
https://github.com/marimo-team/marimo/issues/1669
GitHub
Converting to juypter doesn't display in output of notebook · Issue...
Describe the bug After exporting to jupyter notebook running markdown or any other output doesn't display in notebook. Also if you try to do mo.output.append it throws a no context error. I'...
I commented here https://github.com/marimo-team/marimo/discussions/1670
GitHub
Converting to juypter doesn't display in output of notebook · marim...
Describe the bug After exporting to jupyter notebook running markdown or any other output doesn't display in notebook. Also if you try to do mo.output.append it throws a no context error. I'...
marimo is not built on top of Jupyter so I wouldn't expect it to run in Jupyter at all if you are using the marimo library (
import marimo as mo
). The marimo library is very integrated with the marimo kernel - which allows us to do a lot of cool things that Jupyter otherwise cannot: reactive ui elements, interpolated markdown, lazy-loading, layouting, streaming outputs, etc.
In order to improve upon the notebook and not be help back by legacy features, technologies, or specs, it is a non-goal to allow the marimo library import marimo as mo to full work inside of Jupyter.i agree with the premise of not fully supporting output but why support exporting as a feature if it can't run maybe it shouldn't be a bug but more of a feature to allow more people to migrate off of it.
i agree you shouldn't couple it to jupyter but it would be trivial enough to support writing the output or ipython display
it actually does run to some extent it would be nice if you supported a basic output
Stack Overflow
How can I check if code is executed in the IPython notebook?
I have some Python code example I'd like to share that should do something different if executed in the terminal Python / IPython or in the IPython notebook.
How can I check from my Python code if...
markdown is maybe the only output we could support easily today. Everything else uses web components which would need to be registered with Jupyter. But those we components would likely be “broken” in some way attracting more issues and problems.