holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.78k stars 518 forks source link

APIs Reactive Functions only work partially #1379

Closed MarcSkovMadsen closed 3 years ago

MarcSkovMadsen commented 4 years ago

At https://panel.holoviz.org/user_guide/APIs.html I am trying out the Reactive example. The plot updates to changes in the x and y value. But not the color value.

image

xavArtley commented 4 years ago

For me the example works image

philippjfr commented 4 years ago

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.

jbednar commented 4 years ago

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"?

EricVirag commented 4 years ago

@jbednar I would like to know if dateRangeSlider widget requires a live Python server?

jbednar commented 4 years ago

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.

philippjfr commented 3 years ago

We now have interactivity warnings on all pages.