Usage of Webdriver to convert from html to png

I have generated an .html file in a Jupyter Workspace and want now to convert it to a png file to make it, in the end, viewable in a Workshop application. For that I need access to a webdriver to use selenium. Any ideas on how to achieve that? I’m constantly running into dead ends.

Thank you

Hi @c8130066bf5de37e61e6

You can use lightweight transforms for that with your own custom container.
You can see the flow here in the docs.

For an image with Selenium, you can check out this StackOverflow post as a starting point. Notice that he used sidecar transforms, which may be useful if you need to make large amount (1000+) of these renders, but for your usecase, lightweight should be a better option.

Good luck!

1 Like