holoviz / holoviz/hvplot

Removing interactive from a plot

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

Description

Consider the following plots:
```python
# Cell 1
da = ds["data1"].interactive
da = da.sel(
run=widgets["run"],
extra=widgets["extra"],
)
plots["data1"] = da.hvplot(kind="line", x="t", by=["extra"])
plots["data1"]

# Cell 2
da = ds["data2"].interactive
da = da.sel(
run=widgets["run"],
)
plots["data2"] = da.hvplot(kind="line", x="t")
plots["data2"]
```

In the next cell I want to `isel` a specific value of the `run` and `extra` and plot effectively
```python
plots["data1"] * plots["data2"]
```

This requires repeating the code above without `interactive`. What would be a nicer UX is if we can interact with `run` and `extra` widget directly to set them to a specific value and remove the `interactive` of the plots so that the `*` command can be used there.

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.