-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: interactive docs with marimo #87
base: main
Are you sure you want to change the base?
Conversation
do let me know what you think about this approach from a high level @mdhaber ! |
It sounds like it should be simple enough to just include this in the existing JupyterBook project as an html page. We could always switch over to a static marimo notebook for now and explore making it interactive in a follow-up. I think we may have to wait for Pyodide to get the latest versions of packages for everything to work as it does locally. |
docs/tutorial.py
Outdated
@app.cell | ||
def _(mxp): | ||
simple_array = mxp.arange(3) | ||
repr(simple_array) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why marimo doesn't use the repr
by default like Jupyter, but that seems deliberate based on the docs at https://docs.marimo.io/guides/integrating_with_marimo/displaying_objects/. Seems fine to just implement _display_
as they suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds like I would need to use Marimo to edit the notebook, not Jupyter Lab? I was hoping to just use whatever system SciPy does to make the notebook interactive. Was that not possible, or did you want to change everything to marimo? |
I think that's an alternative option, yes. I was using this as an opportunity to explore marimo a bit. I don't think either way will work at the minute as it seems like we need a more recent version of NumPy than what is on Pyodide. |
Draft for now, TODO:
You should be able to try this out by checking out this branch and running
pixi run tutorial
!