Invalid URI when run the command `show` with `output_file`

When trying to use the function show with output_file('test.html) I receive the following error message:

<?xml version="1.0"?>

<env:Envelope xmlns:env=“http://www.w3.org/2001/12/soap-envelope”><env:Body xmlns:rox=“http://rox.sourceforge.net/SOAP/ROX-Filer”><env:Fault xmlns:rpc=“http://www.w3.org/2001/12/soap-rpc” xmlns:env=“http://www.w3.org/2001/12/soap-envelope”>Failed’/root/wintergreen/bokehIB/test2.html’ is not a valid URI</env:Fault></env:Body></env:Envelope>

``

The file test.html gets created, but no browser windows pops up to show it.

How to resolve that?

Thx!

Hi,

That XML is not generated by Python itself, or by Bokeh. Are you running this code on some remote computer or server? The show function will only be able to work on a local machine, i.e. laptop or desktop right in front of you.

Thanks,

Bryan

···

On Feb 15, 2018, at 01:30, [email protected] wrote:

When trying to use the function show with output_file('test.html) I receive the following error message:

<?xml version="1.0"?>

<env:Envelope xmlns:env=“http://www.w3.org/2001/12/soap-envelope”><env:Body xmlns:rox=“http://rox.sourceforge.net/SOAP/ROX-Filer”><env:Fault xmlns:rpc=“http://www.w3.org/2001/12/soap-rpc” xmlns:env=“http://www.w3.org/2001/12/soap-envelope”>Failed‘/root/wintergreen/bokehIB/test2.html’ is not a valid URI</env:Fault></env:Body></env:Envelope>

``

The file test.html gets created, but no browser windows pops up to show it.

How to resolve that?

Thx!

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/2939bf7e-197b-4b56-ab5b-2378a28bcffb%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Bryan, thanks for your reply.

No, I was running this code on my local computer.

Any simple example yields this result.

I will make some more test and see if i can add some useful information to the discussion.

Best,

Vi

···

Le samedi 17 février 2018 00:51:11 UTC, Bryan Van de ven a écrit :

Hi,

That XML is not generated by Python itself, or by Bokeh. Are you running this code on some remote computer or server? The show function will only be able to work on a local machine, i.e. laptop or desktop right in front of you.

Thanks,

Bryan

On Feb 15, 2018, at 01:30, [email protected] wrote:

When trying to use the function show with output_file('test.html) I receive the following error message:

<?xml version="1.0"?>

<env:Envelope xmlns:env=“http://www.w3.org/2001/12/soap-envelope”><env:Body xmlns:rox=“http://rox.sourceforge.net/SOAP/ROX-Filer”><env:Fault xmlns:rpc=“http://www.w3.org/2001/12/soap-rpc” xmlns:env=“http://www.w3.org/2001/12/soap-envelope”>Failed‘/root/wintergreen/bokehIB/test2.html’ is not a valid URI</env:Fault></env:Body></env:Envelope>

``

The file test.html gets created, but no browser windows pops up to show it.

How to resolve that?

Thx!

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/2939bf7e-197b-4b56-ab5b-2378a28bcffb%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

I don't really have any ideas offhand then. Bokeh just uses the built-in Python standard library "webbrowser" module to raise a browser window:

  21.1. webbrowser — Convenient Web-browser controller — Python 3.6.15 documentation

So if it's not working, then the problem must be somewhere downstream. Where is all the XML coming from? Are you trying to run inside some IDE like pycharm or vscode?

Thanks,

Bryan

···

On Feb 18, 2018, at 13:18, [email protected] wrote:

Hi Bryan, thanks for your reply.

No, I was running this code on my local computer.

Any simple example yields this result.

I will make some more test and see if i can add some useful information to the discussion.

Best,

Vi

Le samedi 17 février 2018 00:51:11 UTC, Bryan Van de ven a écrit :
Hi,

That XML is not generated by Python itself, or by Bokeh. Are you running this code on some remote computer or server? The show function will only be able to work on a local machine, i.e. laptop or desktop right in front of you.

Thanks,

Bryan

On Feb 15, 2018, at 01:30, vincent...@gmail.com wrote:

When trying to use the function `show` with `output_file('test.html)` I receive the following error message:

<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope&quot;&gt;&lt;env:Body xmlns:rox="http://rox.sourceforge.net/SOAP/ROX-Filer&quot;&gt;&lt;env:Fault xmlns:rpc="http://www.w3.org/2001/12/soap-rpc&quot; xmlns:env="http://www.w3.org/2001/12/soap-envelope&quot;&gt;&lt;faultcode&gt;Failed&lt;/faultcode&gt;&lt;faultstring&gt;&#39;/root/wintergreen/bokehIB/test2\.html&#39; is not a valid URI</faultstring></env:Fault></env:Body></env:Envelope>

The file `test.html` gets created, but no browser windows pops up to show it.

How to resolve that?

Thx!

--
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 bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2939bf7e-197b-4b56-ab5b-2378a28bcffb%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/37d47e18-c7ba-4705-b48c-2916d36f06b6%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.