holoviz / holoviz/hvplot

Changing the backend in standalone script

Open
#1,373 1 comment 0 reactions 0 assignees View on GitHub
interface: polars
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

#### ALL software version info
hvplot==0.10.0
polars==1.2.1
plotly==5.22.0
bokeh==3.4.2

#### Description of expected behavior and the observed behavior

I'm coming from this issue https://github.com/pola-rs/polars/issues/17647.
Changing the backend doesn't work, when using a `polars` dataframe with their `plot` namespace inside a standalone script or `marimo` notebooks. Somehow it works when using `jupyter=1.0.0`.

#### Complete, minimal, self-contained example code that reproduces the issue

This script shows a bokeh plot, even though `plotly` was set as a backend:

```python
import polars as pl
import hvplot

hvplot.extension("plotly") # Setting the backend
plt = pl.DataFrame({"x": [1, 2, 3], "y": [3, 2, 1]}).plot.bar()
hvplot.show(plt)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.