After updating to the latest version of Panel, The “save” function shows this warning:
“You are generating standalone HTML/JS output, but trying to use real Python
callbacks (i.e. with on_change or on_event). This combination cannot work.”
The saved html files fail to display plotly graphs:
example:
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
import panel as pn
from bokeh.resources import INLINE
x = pn.Row(pn.pane.Plotly(fig),width=1000)
x.save(“test.html”,resources=INLINE)
The js datatables also look different after the new update, but look fine when I use serve to view the document instead of save.
Is there anyway I can resolve this ?