diff --git a/panel/models/plotly.py b/panel/models/plotly.py index 8bbb1bf09d..79df1e0197 100644 --- a/panel/models/plotly.py +++ b/panel/models/plotly.py @@ -10,6 +10,8 @@ from ..io.resources import JS_URLS, bundled_files from ..util import classproperty +PLOTLY_VERSION = '2.35.3' + class PlotlyEvent(ModelEvent): @@ -35,7 +37,7 @@ def __css__(cls): __javascript_raw__ = [ JS_URLS['jQuery'], - 'https://cdn.plot.ly/plotly-2.31.1.min.js' + f'https://cdn.plot.ly/plotly-{PLOTLY_VERSION}.min.js' ] @classproperty @@ -48,7 +50,7 @@ def __js_skip__(cls): __js_require__ = { 'paths': { - 'plotly': 'https://cdn.plot.ly/plotly-2.31.1.min' + 'plotly': f'https://cdn.plot.ly/plotly-{PLOTLY_VERSION}.min' }, 'exports': {'plotly': 'Plotly'} }