Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

No widgets after "Download as HTML" #79

Open
bacalfa opened this issue Apr 2, 2018 · 3 comments
Open

No widgets after "Download as HTML" #79

bacalfa opened this issue Apr 2, 2018 · 3 comments

Comments

@bacalfa
Copy link

bacalfa commented Apr 2, 2018

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?

@philippjfr
Copy link
Member

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.

@bacalfa
Copy link
Author

bacalfa commented Apr 2, 2018

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.

@jbednar
Copy link
Member

jbednar commented Apr 2, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants