Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[BUG] export_png broken in Bokeh 1.3.0 #9123
I have been using export_png (and export_svgs) a lot lately and everything worked like a charm until I updated to Bokeh 1.3.0.
Running the following example returns these errors:
import numpy as np import bokeh.plotting as bp from bokeh.io import export_png x = np.linspace(0, 2) y = np.sqrt(x) fig = bp.figure(width=700, height=300) fig.circle(x, y) export_png(fig, "test.png")
The generate image contains the grid but is empty otherwise. Under 1.2.0, everything is working fine and we get the expect points in the PNG.
This is possibly related to #7510. "Set" is apparently not defined in phantomJS. The tests are not failing because the tests are using Chrome. If Chrome is required, shouldn't it be the default driver (currently to my understanding it's still phantomJS) ?
tag: component: bokehjs
Jul 29, 2019
I tried to hack the WebDriver setup to have it use chrome (in
Just in case, here are the plots:
BTW I know folks are very "PhantomJS is deprecated, Chrome should be the default" but the trade-offs are not insignificant. Last time I checked, using Chrome was nearly 5x slower than using PhantomJS (which is already slow). I still support bolstering the tests and leaving the default as PhantomJS for now, pending more research.
@mattpap "minimal" tests on master are currently failing. The new conda version is more aggressive at removing packages that were never explicitly installed, so ipython is getting removed where it was not before, causing some tests to fail. I will push a PR to fix tonight.