Unable to plot pyqtgraph to datapane report

import altair as alt
from vega_datasets import data
import datapane as dp
import pyqtgraph as pg

df = data.cars()

plot1 = alt.Chart(df).mark_circle(size=60).encode(
    x='Horsepower', y='Miles_per_Gallon', color='Origin',
    tooltip=['Name', 'Origin', 'Horsepower', 'Miles_per_Gallon']
).interactive()

x=list(range(1024))
y=list(range(1024))

plot2 = pg.PlotCurveItem(x=x,y=y, pen=pg.mkPen('r'))
plots=[plot1,plot2]

dp.Report(
    dp.Plot(plots),
    dp.DataTable(df)
).save("My example.html")

Hi @Kvarun10!

From a quick search, it looks like PyQtGraph is primarily designed for creating desktop applications. The solutions I saw were mostly advice on using an alternative interactive plotting library with first-class support for the web.

In the meantime, could a solution be to export your plot as an image and add that instead? This isn’t ideal if you need interactivity, and I couldn’t find any supported export options that maintain this.

This would make a great feature request!