I have a figure() object that I wish to save as a png.
However, I get this error
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: {“errorMessage”:“undefined is not an object (evaluating ‘window.Bokeh.documents’)”,“request”:{“headers”:{“Accept”:“application/json”,“Accept-Encoding”:“identity”,“Connection”:“close”,“Content-Length”:“393”,“Content-Type”:“application/json;charset=UTF-8”,“Host”:“127.0.0.1:54603”,“User-Agent”:“Python http auth”},“httpVersion”:“1.1”,“method”:“POST”,“post”:"{“script”: “\n // add private window prop to check that render is complete\n window._bokeh_render_complete = false;\n function done() {\n window._bokeh_render_complete = true;\n }\n\n var doc = window.Bokeh.documents[0];\n\n if (doc.is_idle)\n done();\n else\n doc.idle.connect(done);\n “, “args”: , “sessionId”: “4cf03ab0-aec2-11e7-aea9-3beff2afffb4”}”,“url”:”/execute",“urlParsed”:{“anchor”:"",“query”:"",“file”:“execute”,“directory”:"/",“path”:"/execute",“relative”:"/execute",“port”:"",“host”:"",“password”:"",“user”:"",“userInfo”:"",“authority”:"",“protocol”:"",“source”:"/execute",“queryKey”:{},“chunks”:[“execute”]},“urlOriginal”:"/session/4cf03ab0-aec2-11e7-aea9-3beff2afffb4/execute"}}
Screenshot: available via screen
``
I’ve installed the dependencies.

