Replies: 2 comments 14 replies
-
|
this is not currently possible, but seems like a useful artifact. we definitely have this knowledge. what is the use case? do you need the DAG by itself? if you are coming from a jupyter notebook, it is not guaranteed to be a DAG (could have cycles and re-declarations) |
Beta Was this translation helpful? Give feedback.
-
|
I have created a notebook to access the dag graph within the notebook itself, and represent it trough a mo.mermaid component. And app.graph() I found some useful classes and methods also in the _ai repo tools. From within the notebook I could also load an external notebook and show it's graph. My goal was multiple: I purposedly created a graph to mermaid syntax function. Then I started using more the minimap, (that does not fill the full width of the panel as the graph does) Different views in the Marino native graph panel could be button enabled to show only titles or cell number. My notebook could easily be adapted to run as a cli script. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I checked the PyPI page and it mentioned that we could convert a Jupyter notebook to a marimo notebook with the CLI:
Similarly, is it possible to get a dataflow graph (DAG) from a notebook via CLI or API? For example, the input is a Jupyter notebook and the output is a JSON string:
Any suggestions? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions