Open bacalfa opened 6 years ago
ipywidgets has some facilities to support exporting the widgets that you can read up on here. I've had some luck using them, but it's certainly not as straightforward as it should. For that and other reason we're probably going to focus on parambokeh. We'll be devoting some time to bring parambokeh up to scratch very soon.
That all being said, what are you hoping out of the HTML export? It will never support interacting with Python so the interactions you define won't work.
Thanks. Yeah, I think I was being kinda naïve. :) I like the flexibility of paramnb (and parambokeh) that allows me to create functions to handle widgets, and I was hoping that would be exported to HTML. Basic widgets work in HTML (e.g., when you groupby
a column), but I don't have the flexibility I may need.
Basically, the widgets exported by HoloViews should work fine in an export unless you are using DynamicMap or anything based on it (datashade
, rasterize
, etc.). Widgets from paramnb and parambokeh can be draggable, but those two libraries are all about using JavaScript widgets to control a Python process, and so you'll need a running Python process to do anything useful at that point.
Widgets disappear after exporting the notebook to HTML. The plot is still there and it's interactive (e.g., hover tool works). Is this normal?