-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError 'data' on table edit #5513
Comments
Hi, can you check what versions of Bokeh and ipywidgets_bokeh you have installed? |
bokeh version 3.2.2 I do not have ipywidgets_bokeh listed as installed. Is it perhaps included within ipywidgets v8.1.0? or do I need to install it directly? |
Try installing it; be sure you get the latest version 1.5. |
installed 1.5. Same issue. |
mmh, I don't have any clear ideas then, it works on my computer. Can you send me your full package list with |
(poetry-py3.11) PS C:\code\PCMC_LBCT\poetry> poetry show |
Getting same error. |
Same problem. Already tried experimenting with different versions of jupyter-boken, bokeh, ipywidgets, panel etc. Added elif kind == "ColumnsPatched":
+ import sys
+ print(content, file=sys.stderr)
model = content["model"]
patches = content["data"]
assert isinstance(model, ColumnDataSource)
model.patch(patches, setter=setter) to
I have no idea where it comes from, but looks like it isn't the format I am running this on Windows inside VS Code (with its built-in support for Jupyter notebooks). |
I've been able to reproduce and opened a tentative PR on |
Just trying to get the Tabulator example posted on the main webpage to work. Editing the cells throws a KeyError exception.
https://panel.holoviz.org/reference/widgets/Tabulator.html
ALL software version info
panel v1.2.2
ipywidgets v8.1.1
bokeh v3.2.2
jupyter_bokeh v3..0.7
Windows 10
python 3.11
working within VScode v1.82.2 with Jupyter Extension v2023.8.1002501831
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)
Description of expected behavior and the observed behavior
should be able to edit without fatal error
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
KeyError Traceback (most recent call last)
File c:\Users\NMiller\AppData\Local\pypoetry\Cache\virtualenvs\poetry-A7ZAAhQy-py3.11\Lib\site-packages\jupyter_bokeh\widgets.py:162, in BokehModel._sync_model(self, _model, content, _buffers)
160 elif kind == "ColumnsPatched":
161 model = content["model"]
--> 162 patches = content["data"]
164 assert isinstance(model, ColumnDataSource)
165 model.patch(patches, setter=setter)
KeyError: 'data'
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: