Skip to content
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

Plotly fig with rangeslider of type 'date' freezes app if controls are shown #7596

Open
1 task
CodyKlingler opened this issue Jan 6, 2025 · 1 comment
Open
1 task

Comments

@CodyKlingler
Copy link

CodyKlingler commented Jan 6, 2025

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)

Software Version Info Python 3.12.4 ```plaintext panel==1.5.5 plotly==5.24.1 bokeh==3.6.2 ```

Description of expected behavior and the observed behavior

Dragging the range slider on a plotly fig freezes the app, but only if its type of the x-axis is 'date' and the controls are being rendered.

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

import panel as pn
import plotly.graph_objects as go

fig = go.Figure()
fig.update_layout(xaxis=dict(rangeslider=dict(visible=True), type="date"))
pt = pn.pane.Plotly(fig)

col = pn.Column(pt, pt.controls())
col.servable()

Screenshots or screencasts of the bug in action

Image

  • I may be interested in making a pull request to address this
@philippjfr
Copy link
Member

Seems to be causing infinite recursion, presumably because the date serialization isn't consistent between Plotly and Panel in this case. Not convinced there's much we can do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants