Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for headless chrome/chromium for image diff tests #6594
referenced this issue
Jul 10, 2017
I tested on Windows, and Chrome 61 (I presume also 60) does support headless mode and works perfectly. At this point there is no real reason to stick to phantomjs. We will need conda packages for chrome, and we will be able to proceed with integration.
I was able to get bokeh working with headless chrome, on windows 10 and chrome 62. It's significantly faster to run export_png this way vs with no driver specified.
steps I took:
[UPDATE]: Resolved my own issue. I added argument ("--windows-size=<#,#>") and just tweaked it until my export plots looked correct.
[Original Post]: Thanks @normaljosh - that script runs for me. However, it seems that the export_png using chrome takes a screenshot of the html file opened in a web browser, as opposed to what using phantomJS did - grab a picture of the whole plot. Any ideas on how to make your script pull the whole plot? A workaround is probably to minimize my html plot size so that it fits in a web browser, but would prefer to avoid that route if possible.