-
Notifications
You must be signed in to change notification settings - Fork 11
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
Panel Matplotlib pane fails when interactive=True #41
Comments
Should have updated the pins but latest ipywidgets_bokeh requires bokeh>2.4. |
I tried the example with the latest version bokeh 2.4.1 It now throws another error import panel as pn
from matplotlib import pyplot as plt
FONTAWESOME_LINK = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.css"
pn.config.css_files.append(FONTAWESOME_LINK)
fig, ax = plt.subplots()
ax.plot([0,1,2], [2,2,4])
pn.pane.plot.Matplotlib(fig, interactive=True).show() $ python 'snippets\script.py'
Launching server at http://localhost:51985
WARNING:tornado.access:404 GET /favicon.ico (::1) 1.00ms
ERROR:fake:Invalid Message
Traceback (most recent call last):
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\ipykernel\kernelbase.py", line 312, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\jupyter_client\session.py", line 1048, in deserialize
raise ValueError("Duplicate Signature: %r" % signature)
ValueError: Duplicate Signature: b'ddb25f037b3c018553a6441f9fd711c54e4c159ba478de1f5ac630117f72a267'
ERROR:fake:Invalid Message
....
Traceback (most recent call last):
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\ipykernel\kernelbase.py", line 312, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\jupyter_client\session.py", line 1048, in deserialize
raise ValueError("Duplicate Signature: %r" % signature)
ValueError: Duplicate Signature: b'400aa479fa9ab6a81aa652cb81b59f1b3e8870a9a863d78014879dd57855b86c'
ERROR:fake:Invalid Message
Traceback (most recent call last):
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\ipykernel\kernelbase.py", line 312, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\jupyter_client\session.py", line 1048, in deserialize
raise ValueError("Duplicate Signature: %r" % signature)
ValueError: Duplicate Signature: b'400aa479fa9ab6a81aa652cb81b59f1b3e8870a9a863d78014879dd57855b86c'
ERROR:fake:Invalid Message
Traceback (most recent call last):
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\ipykernel\kernelbase.py", line 312, in dispatch_shell
msg = self.session.deserialize(msg, content=True, copy=False)
File "C:\repos\private\panel-visuals\.venv\lib\site-packages\jupyter_client\session.py", line 1048, in deserialize
raise ValueError("Duplicate Signature: %r" % signature)
ValueError: Duplicate Signature: b'400aa479fa9ab6a81aa652cb81b59f1b3e8870a9a863d78014879dd57855b86c'
WARNING:tornado.access:404 GET /static/extensions/ipywidgets_bokeh/06c52960c6d2c0312a3e.woff?v=4.7.0 (::1) 1.00ms
WARNING:tornado.access:404 GET /static/extensions/ipywidgets_bokeh/4c6f1cd9993ba8a53b8e.ttf?v=4.7.0 (::1)
1.00ms The problem is also there if I downgrade |
Hi, I was wondering if there is any update on this issue? |
This should be resolved with latest Panel (0.13.0) and bokeh (2.4.2). |
I run this with the latest versions of the tools and got inconsistent results. It was not producing reliable results on Mac and Linux, Chrome and Firefox, classic notebook and lab. What seems to work reliably is downgrading |
That should have been resolved by panel 0.13. can you confirm what |
yes, I can confirm my panel version is '0.13.0' |
I was directed to file an issue here from https://discourse.holoviz.org/t/matplotlib-pane-throwing-attributeerror-when-interactive-true/2911
The minimal app:
works when
But I have discovered that even with these versions, the app crashes when the page is reloaded.
If I run it via docker, the panes displays correctly the first time the app spins up, but subsequent sessions will display horizontally squished panes:
where the first session dies with trace:
The text was updated successfully, but these errors were encountered: