Skip to content

Jupyter

The following steps help to visualize your SVG in Jupyter.

  1. Import display and HTML from IPython.display

    from IPython.display import HTML, display
    
  2. After building you SVG, add the following code in a new cell

    display(HTML(str(plot)), metadata={"isolated": True})
    
    display(
        HTML("<style>body{background:#111111;}</style>" + str(plot)),
        metadata={"isolated": True}
    )