-
-
Notifications
You must be signed in to change notification settings - Fork 119
Description
ALL software version info
Software Version Info
windows==11
python==3.13.5
hvplot==0.12.0
holoviews==1.21.0
panel==1.7.5
bokeh==3.7.3
numpy==2.2.6
pandas==2.3.1
Description of expected behavior and the observed behavior
When attempting to display a plot generated from pn.rx object using hvplot.show() in a python script, an ValueError is raised, indicating that the object type is not recognized. Additionally, the error message itself (ValueError: {type(obj).__name__} type object not recognized and cannot be shown) is not a f-string.
Complete, minimal, self-contained example code that reproduces the issue
import numpy as np
import pandas as pd
import hvplot.pandas
import panel as pn
pn.extension(throttled=True)
df = pd.DataFrame({'value': np.linspace(0, 1, 100)})
rdf = pn.rx(df)
slider = pn.widgets.FloatSlider(name='value', start=0, end=1, value=0.5)
subset = rdf[rdf > slider]
plot = subset.hvplot(y='value')
hvplot.show(plot)Stack traceback and/or browser JavaScript console output
(base) PS D:\holoviz> python test.py
Traceback (most recent call last):
File "D:\holoviz\test.py", line 14, in <module>
hvplot.show(plot)
~~~~~~~~~~~^^^^^^
File "D:\programming\uv_base\.venv\Lib\site-packages\hvplot\utilities.py", line 134, in show
raise ValueError('{type(obj).__name__} type object not recognized and cannot be shown.')
ValueError: {type(obj).__name__} type object not recognized and cannot be shown.
Screenshots or screencasts of the bug in action
- I may be interested in making a pull request to address this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels