[Python] IPython.display does not show any image at all but <IPython.core.display.Image object>

Discussão em 'Python' iniciado por Stack, Março 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to show LangChain graph in my python module code. Not Jupiter notebook. However, the following code snippet:

    graph = BuildGraph()
    display(Image(graph.get_graph().draw_mermaid_png()))


    shows: <IPython.core.display.Image object> instead of the graph. I am on Ubuntu.

    Continue reading...

Compartilhe esta Página