mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 11:47:51 +02:00
Fix
This commit is contained in:
@@ -630,10 +630,9 @@ class CompiledGraph(Pregel):
|
||||
|
||||
return graph
|
||||
|
||||
def _repr_mimebundle_(self, **kwargs) -> dict[str, Any]:
|
||||
def _repr_mimebundle_(self, **kwargs: Any) -> dict[str, Any]:
|
||||
"""Mime bundle used by Jupyter to display the graph"""
|
||||
output = {
|
||||
return {
|
||||
"text/plain": repr(self),
|
||||
"image/png": self.get_graph().draw_mermaid_png(),
|
||||
}
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user