Closed MarcSkovMadsen closed 3 years ago
For me the example works
I think @MarcSkovMadsen means on the website itself, which indeed does not work. I think we should probably work on disabling widgets which do not or cannot work on the website.
Would it be possible for us to make a watermark that we overlay on top of panes or widgets that aren't supported in a static export, with tilted or otherwise distinguishable text saying something like "Requires live Python server"?
@jbednar I would like to know if dateRangeSlider widget requires a live Python server?
No particular widget requires a live server; it's the connection from the widget to something that would require a server. For instance, you should be able to use .jslink to connect the widget to a property of a Bokeh plot, so that the DateRangeSlider widget controls the x axis range. Such a connection would be done entirely at the JavaScript level, implemented by your local client browser, and would thus work on a website or in a static exported file. But if you connect that same widget up to a callback written in Python that e.g. does a database query for that date range, then the widget will have no effect without Python running. That's how Panel works in general -- the basic machinery is all set up to work either with Python or with JavaScript, and if you stick with JavaScript connections and JavaScript callbacks, then you won't need Python.
We now have interactivity warnings on all pages.
At https://panel.holoviz.org/user_guide/APIs.html I am trying out the Reactive example. The plot updates to changes in the
x
andy
value. But not thecolor
value.