Displaying graphviz graph

According to this Github issue this was supposed to work about 5 years ago

from graphviz import Graph
hw = Graph('hello', format='svg')
hw.edge('Hello', 'World')

import panel as pn
pn.extension()
pn.Row(hw)

But it only displays a text representation of the graph. Panel version is 0.14.4. Jupyter Lab displays the graph just fine.

Anyone have any ideas on how to make this work? Your help is appreciated.

Never mind, I figured it out.

from graphviz import Graph

import panel as pn
pn.extension()

hw = Graph('hello',format='png')
hw.edge('Hello', 'World')
pn.pane.PNG(hw.pipe())