holoviz / holoviz/hvplot

hvplot does not render in code cells, panel widgets

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

Description

Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at [Discourse](https://discourse.holoviz.org) instead. Issues without the required information below may be closed immediately.

#### ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)
hvplot 0.9.0
bokeh 3.3.2
panel 1.3.4
holoviews 1.18.1
jupyterlab 4.0.9
#### Description of expected behavior and the observed behavior
This happened after update of bokeh from 3.3.1. There are two issues:
1. When the code below is run in code cell, it does not display. The same code works when typed in the associated console. However, when I close and reopen the notebook, the image is shown in the code cell.
2. Another problem is that the select widget does not work (when displayed in console): the items can be selected, but the image does not change.

I tried both firefox and chromium browsers. The javascript console log output is shown below.
#### Complete, minimal, self-contained example code that reproduces the issue

```
# code goes here between backticks
import panel as pn
import hvplot.pandas # noqa

from bokeh.sampledata.iris import flowers

flowers.hvplot.bivariate(x='sepal_width', y='sepal_length', width=600,
groupby='species')
```

#### Stack traceback and/or browser JavaScript console output

```
Kernel not found, could not register comm target 88e9030be98c4772a287ba219fc9b1c9
30.142e2e0fa2b610ad434f.js?v=142e2e0fa2b610ad434f:1
Kernel not found, could not connect to comm target 8b26b18e4d574fe88e11c2a944906088
jlab_core.a61821d8a2a9c35d7996.js?v=a61821d8a2a9c35d7996:1
Uncaught Error: Comms are disabled on this kernel connection
at y.createComm (jlab_core.a61821d8a2a9c35d7996.js?v=a61821d8a2a9c35d7996:1:1238060)
at Object.connectToComm (30.142e2e0fa2b610ad434f.js?v=142e2e0fa2b610ad434f:1:9054)
at JupyterCommManager.get_client_comm (:51:50)
at d.initialize (panel.min.js:54:833)
at d.finalize (bokeh-3.3.2.min.js:179:4582)
at p.decode (bokeh-3.3.2.min.js:212:805)
at S.from_json (bokeh-3.3.2.min.js:165:6273)
at t.embed_items_notebook (bokeh-3.3.2.min.js:231:2268)
at embed_document (:11:17)
at :40:5
```
#### Screenshots or screencasts of the bug in action

- [ ] I may be interested in making a pull request to address this

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.