positron icon indicating copy to clipboard operation
positron copied to clipboard

Plots from `hvplot` don't work

Open david-cortes opened this issue 1 year ago • 3 comments

Positron Version:

Positron Version: 2024.07.0 build 14
Code - OSS Version: 1.90.0
Commit: b750305d0e9079e1a6d4e0b1d78daa70964b0cb8
Date: 2024-07-04T03:06:07.448Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.1.0-22-amd64

Steps to reproduce the issue:

  1. Create a plot with hvplot.
import polars as pl
import hvplot.polars
from sklearn.datasets import load_iris
df = load_iris(as_frame=True)["data"]
df = pl.DataFrame(df)
df["sepal length (cm)"].hvplot.hist()

What did you expect to happen?

Should show the plot in the plotting panel and let me play with it, like in the regular Jupyter extension: image

Actual behavior

Generates a series of non-viewable plots in the plots pane, but the actual plot doesn't show: image

Were there any error messages in the output or Developer Tools console?

No

david-cortes avatar Jul 04 '24 15:07 david-cortes

Thank you for the report! I'm able to repro this on macOS.

seeM avatar Jul 05 '24 08:07 seeM

Once #4118 is finished, this may be taken care of since bokeh is the plotting library underpinning hvplot.

nstrayer avatar Jul 23 '24 16:07 nstrayer

I do get errors in the webview developer tools related to missing resources. image

nstrayer avatar Jul 23 '24 16:07 nstrayer

Verified Fixed

Positron Version(s) : 2024.08.0-48 OS Version(s) : Windows 11, MacOS 14

Test scenario(s)

Using original code, the plot shows as expected using:

  • Python File
  • Notebook
  • in Console

Link(s) to TestRail test cases run or created:

jonvanausdeln avatar Aug 19 '24 18:08 jonvanausdeln