holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.49k stars 489 forks source link

pn.pane.Perspective.save - html file contains empty perspective (data is missing) #5914

Open avivazran opened 8 months ago

avivazran commented 8 months ago

OS: Windows10 Browsers: Chrome,Edge

Panel 1.2.3 Pandas 1.5.3 Numpy 1.26.0

on jupyter lab the widget renders fine.

image

However, when running: lt.save(r'C:\PythonProjects\fft.html',embed_json=True,embed=True) the output HTML file show empty perspective without the data itself.

image

MarcSkovMadsen commented 4 months ago

I would also like to .save a report containing Perspective. But it seems the saved file is trying to load .css resources from the server which of course no longer is running.

import panel as pn
import pandas as pd

pn.extension("perspective")

data = pd.DataFrame({
    "x": [1,2], "y": [3,4]
})

pn.pane.Perspective(data, height=300, width=300).save("report.html")
python script.py

image

philippjfr commented 4 months ago

Appears to be fixed after the Perspective update.

philippjfr commented 4 months ago

Maybe not, reopening.