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

Make Plotly.viewport nullable #1988

Merged
merged 1 commit into from Feb 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions panel/models/plotly.py
Expand Up @@ -2,7 +2,7 @@
Defines a custom PlotlyPlot bokeh model to render Plotly plots.
"""
from bokeh.core.properties import (
Any, Dict, Enum, Int, Instance, List, String
Any, Dict, Either, Enum, Int, Instance, List, Null, String
)
from bokeh.models import LayoutDOM, ColumnDataSource

Expand Down Expand Up @@ -50,7 +50,7 @@ def __js_skip__(cls):
hover_data = Dict(String, Any)
clickannotation_data = Dict(String, Any)
selected_data = Dict(String, Any)
viewport = Dict(String, Any)
viewport = Either(Dict(String, Any), Null)
viewport_update_policy = Enum( "mouseup", "continuous", "throttle")
viewport_update_throttle = Int()
_render_count = Int()