Skip to content
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

WIP: Add browser rendered previews/snapshots of html and widgets #901

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

maartenbreddels
Copy link
Collaborator

This adds a preprocessor that spins up a webserver, points the browser to it, and make it render jupyter-widgets or html output to a png, which is added to the 'mime bundle'. This allows for instance the rendering of ipyleaflet to pdf, and will be an important ingredient for sphinx-gallery supporting widgets, see sphinx-gallery/sphinx-gallery#422
Example of ipyleaflet rendered:
screen shot 2018-10-16 at 12 40 19

TODO

  • support for headless chrome with cmd line argument tweaking
  • unittests

@maartenbreddels
Copy link
Collaborator Author

Nice side effect, it renders on github also (when both mime types are included, widget and png):
https://gist.github.com/maartenbreddels/5c143f66281d7d0e5866bf705ed6ce45

@piorek
Copy link

piorek commented Aug 28, 2019

Hi, @maartenbreddels any updates on this?

@maartenbreddels
Copy link
Collaborator Author

Not really, I think some of this should be pushed to jupyter-widgets/ipywidgets#2280
But I also wonder if #1031 is the right solution?
Any strong opinions?

@bollwyvl
Copy link
Contributor

bollwyvl commented Aug 28, 2019 via email

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

Successfully merging this pull request may close these issues.

None yet

5 participants