-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PerspectiveWidget
HTML export support in Jupyter
#2418
Conversation
PerspectiveWidget
HTML export support in Jupyter
5953b3f
to
3ef596f
Compare
As it is currently, rendering the HTML output is unconditional and this will add some bloat to all .ipynb using We can make this configurable and/or optional in Perspective, for users who don't care to support exporting. Would a global setting or per-widget setting make sense? |
3ef596f
to
4198f1f
Compare
per-widget, what about if I stream data in and call update() a bunch of times, will it reflect the latest? |
I don't have very much experience doing streaming perspectives but I'll check. I think it reflects whatever was in the table at the time the cell first rendered, which is probably undesirable. |
Added a class variable on It can be set on the class to make all widgets render HTML output, or on an instance to make only that widget do it |
4198f1f
to
9ae1df9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
python/perspective/perspective/templates/exported_widget.html.jinja
Outdated
Show resolved
Hide resolved
c8330a4
to
d9f3e34
Compare
Add `text/html` output to PerspectiveWidget's `_repr_mimebundle_` method, which is read by nbconvert when exporting a notebook to HTML. Also bumps requirements, and adds sorting to the updater script
ed91600
to
f61e47e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Looks good!
No description provided.