posit-dev / positron

Positron, a next-generation data science IDE
Other
1.59k stars 43 forks source link

Plots from `hvplot` don't work #3880

Open david-cortes opened 5 days ago

david-cortes commented 5 days ago

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

seeM commented 4 days ago

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