Detect if running in marimo
Is there a way for my framework to detect if it is currently running in Marimo? e.g. - this is how it is done in Jupyter: https://stackoverflow.com/questions/15411967/how-can-i-check-if-code-is-executed-in-the-ipython-notebook
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...
3 Replies
Someone will reply to you shortly. In the meantime, this might help:
-# This post was marked as solved by apowers313. View answer.
Miscellaneous - marimo
The next generation of Python notebooks
thanks, that was way too easy... I should have found that 😉