The tool just calls the JavaScript function `window.open()`. Presumabely if you don't specify a protocol it defaults to "http" and whatever host the current document is on. So it might work if you give it "file" specifically:
file://Users/joegi/Desktop/inter.htm
I've not had a chance to test this. If it works for you, a PR that adds a note to the docstring or User's Guide (or both) explaining this would be very appreciated.
Thanks,
Bryan
···
On Jun 11, 2015, at 4:29 PM, 'joe gi' via Bokeh Discussion - Public <[email protected]> wrote:
Hi,
I wonder if it is possible to open a local file using taptool
From: Bryan Van de Ven [email protected] To:[email protected] Sent: Friday, June 12, 2015 1:18 AM Subject: Re: [bokeh] open local file using taptool
Hi Joe,
The tool just calls the JavaScript function window.open(). Presumabely if you don’t specify a protocol it defaults to “http” and whatever host the current document is on. So it might work if you give it “file” specifically:
file://Users/joegi/Desktop/inter.htm
I’ve not had a chance to test this. If it works for you, a PR that adds a note to the docstring or User’s Guide (or both) explaining this would be very appreciated.
Thanks,
Bryan
On Jun 11, 2015, at 4:29 PM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:
Hi,
I wonder if it is possible to open a local file using taptool
From: Bryan Van de Ven [email protected] To:[email protected] Sent: Friday, June 12, 2015 1:18 AM Subject: Re: [bokeh] open local file using taptool
Hi Joe,
The tool just calls the JavaScript function window.open(). Presumabely if you don’t specify a protocol it defaults to “http” and whatever host the current document is on. So it might work if you give it “file” specifically:
file://Users/joegi/Desktop/inter.htm
I’ve not had a chance to test this. If it works for you, a PR that adds a note to the docstring or User’s Guide (or both) explaining this would be very appreciated.
Thanks,
Bryan
On Jun 11, 2015, at 4:29 PM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:
Hi,
I wonder if it is possible to open a local file using taptool
sorry to dig up this older message, but did somebody found a workaround? Executing this script works via compiling to .html with show() but not when using the bokeh server. I need this to work via bokeh server…
From: Bryan Van de Ven [email protected] To:[email protected] Sent: Friday, June 12, 2015 1:18 AM Subject: Re: [bokeh] open local file using taptool
Hi Joe,
The tool just calls the JavaScript function window.open(). Presumabely if you don’t specify a protocol it defaults to “http” and whatever host the current document is on. So it might work if you give it “file” specifically:
file://Users/joegi/Desktop/inter.htm
I’ve not had a chance to test this. If it works for you, a PR that adds a note to the docstring or User’s Guide (or both) explaining this would be very appreciated.
Thanks,
Bryan
On Jun 11, 2015, at 4:29 PM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:
Hi,
I wonder if it is possible to open a local file using taptool
On Thursday, September 21, 2017 at 10:23:47 PM UTC+7, JMeert wrote:
Hi,
sorry to dig up this older message, but did somebody found a workaround? Executing this script works via compiling to .html with show() but not when using the bokeh server. I need this to work via bokeh server…
From: Bryan Van de Ven [email protected] To:[email protected] Sent: Friday, June 12, 2015 1:18 AM Subject: Re: [bokeh] open local file using taptool
Hi Joe,
The tool just calls the JavaScript function window.open(). Presumabely if you don’t specify a protocol it defaults to “http” and whatever host the current document is on. So it might work if you give it “file” specifically:
file://Users/joegi/Desktop/inter.htm
I’ve not had a chance to test this. If it works for you, a PR that adds a note to the docstring or User’s Guide (or both) explaining this would be very appreciated.
Thanks,
Bryan
On Jun 11, 2015, at 4:29 PM, ‘joe gi’ via Bokeh Discussion - Public [email protected] wrote:
Hi,
I wonder if it is possible to open a local file using taptool