Error using export_png

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.

Maybe I can also add another question. I’m trying to enable multiple brushed regions on a plot that is linked. So for example brush one area, then brush another area, maybe with a different highlight color. Is this possible?

Please make separate posts for separate questions.

Thanks,

Bryan

···

On Oct 11, 2017, at 15:34, Allan <[email protected]> wrote:

Maybe I can also add another question. I'm trying to enable multiple brushed regions on a plot that is linked. So for example brush one area, then brush another area, maybe with a different highlight color. Is this possible?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5162802a-b75d-42ca-a416-e28bb4bd6f11%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi,

In order to help, detailed version information for everything relevant will be needed,

Thanks,

Bryan

···

On Oct 11, 2017, at 15:31, Allan <[email protected]> wrote:

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.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1865f4d0-63e7-47a9-9855-9674b96c00eb%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

I should mention I used conda-forge to install selenium. This gave me an error on selenium:

conda install selenium phantomjs pillow

Im on version 0.12.7 bokeh
and the package versions are I guess the latest

Hi,

I'm not trying to be unnecessarily short, but I'm not able to help with "I guess the latest". Detailed and complete version information for:

* OS
* browsers
* python
* selenium
* phantomjs
* pillow
* bokeh

are all needed in order to even start to speculate, or to try and reproduce the problem so it can be investigated.

Otherwise I can only suggest: have you tried not installing from conda-forge? I have no control over what's there and can make no guarantees that the versions there are suitable.

Thanks,

Bryan

···

On Oct 11, 2017, at 15:49, Allan <[email protected]> wrote:

and the package versions are I guess the latest

OS: macOS Sierra 10.12.6
python: 3.6.2
selenium: 3.6.0
phantom: 2.1.1
pillow: 4.2.1
bokeh: 0.12.7

Apologies

So my version of selenium is in fact older:

❯ conda list selenium
# packages in environment at /Users/bryan/anaconda:

···

#
pytest-selenium 1.6.0 py_1 bokeh
selenium 3.4.3 py36_0 conda-forge

It's possible something about the newer selenium is currently incompatible. My first suggestion is to downgrade selenium to the version above and see if that works,

Thanks,

Bryan

On Oct 11, 2017, at 16:14, Allan <[email protected]> wrote:

OS: macOS Sierra 10.12.6
python: 3.6.2
selenium: 3.6.0
phantom: 2.1.1
pillow: 4.2.1
bokeh: 0.12.7

Apologies

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/20f615b6-ff06-4929-9587-f1728553f78d%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.