Can't display Holoviews Chord graph

Hi,
I am trying to build a chord graph using holoviews, following this example
https://holoviews.org/reference/elements/bokeh/Chord.html
this works just fine in a colab notebook, but I can not get it to work in streamlit

I tried
fig = hv.Chord(links)
p = hv.render(fig, backend=‘bokeh’)
st.bokeh_chart(p)

but I get:
‘Figure’ object has no attribute ‘traverse’

If i output with
st.write(type(p))
I get
<class ‘bokeh.plotting.figure.Figure’>

TIA for any help

1 Like

@randyzwitch I’m having the same problem

Old question. In case it helps other people, a workaround would be saving the chord plot as html and use components to display it. I would do something like

import streamlit.components.v1 as components
...
hv.save(fig ,'fig.html')
HtmlFile = open("fig.html", 'r', encoding='utf-8')
source_code = HtmlFile.read()
components.html(source_code, width=1800, height=1200, scrolling=True)