Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Dec 5, 2024
1 parent 4459952 commit 9f73dfa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/langgraph/langgraph/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,9 @@ def add_edge(

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

0 comments on commit 9f73dfa

Please sign in to comment.