Bokeh in offline mode

Hi folks,

I’m evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.

I have Googled for this but it’s not clear to me how to achieve this.

Would appreciate any help/links/pointers.

Cheers,

Richar

Hi Richard,

Until 0.11 this was actually the default mode of operation, but folks asked for CDN loading to be the default, so that change was made. But you can still use INLINE resources explicitly you can create self-contained standalone documents. This is available in bokeh.resources:

  from bokeh.resources import INLINE

And can be passed to many of the output functions, e.g., file_html:

        with open(filename, "w") as f:
    f.write(file_html(doc, INLINE, "Demonstration of inline resources"))

This creates a standalone HTML document with all data, JS and CSS embedded inside the one file.

It is also possible to spell this intention another way, by simply passing mode="inline" to output_file (if you are using output_file):

  output_file(file_path, mode='inline')

Finally, you could also serve the Bokeh JS and CSS resources yourself on your own server on your internal network, and create documents that load the resources from there. This is a little bit more involved (and I'd have to refresh my memory in some cases) so unless you are interested specifically in this scenario I won't expand further here.

Thanks,

Bryan

···

On Jan 22, 2016, at 10:45 AM, [email protected] wrote:

Hi folks,

I'm evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.

I have Googled for this but it's not clear to me how to achieve this.

Would appreciate any help/links/pointers.

Cheers,

Richar

--
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/ee2ed429-b9de-4bc4-ad2f-26c453ec7380%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,

Thanks for the code examples.

So with Bokeh installed, I have all JS/CSS required to generate these offline standalone plots in an offline setting?

Thanks so much for taking the time to help. Really excited by the Gallery examples on what it can do:)

Cheers,

Richard

···

On Friday, 22 January 2016 12:06:57 UTC-5, Bryan Van de ven wrote:

Hi Richard,

Until 0.11 this was actually the default mode of operation, but folks asked for CDN loading to be the default, so that change was made. But you can still use INLINE resources explicitly you can create self-contained standalone documents. This is available in bokeh.resources:

    from bokeh.resources import INLINE

And can be passed to many of the output functions, e.g., file_html:

    with open(filename, "w") as f:

            f.write(file_html(doc, INLINE, "Demonstration of inline resources"))

This creates a standalone HTML document with all data, JS and CSS embedded inside the one file.

It is also possible to spell this intention another way, by simply passing mode=“inline” to output_file (if you are using output_file):

    output_file(file_path, mode='inline')

Finally, you could also serve the Bokeh JS and CSS resources yourself on your own server on your internal network, and create documents that load the resources from there. This is a little bit more involved (and I’d have to refresh my memory in some cases) so unless you are interested specifically in this scenario I won’t expand further here.

Thanks,

Bryan

On Jan 22, 2016, at 10:45 AM, [email protected] wrote:

Hi folks,

I’m evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.

I have Googled for this but it’s not clear to me how to achieve this.

Would appreciate any help/links/pointers.

Cheers,

Richar


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/ee2ed429-b9de-4bc4-ad2f-26c453ec7380%40continuum.io.

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

Richard,

Yes, they are bundled with the python library as part of our automated build and release process. If you have one of the latest "dev builds", you can easily find the location on the filesystem with the new "bokeh info" command:

  $ bokeh info
  Python version : 3.5.1 |Continuum Analytics, Inc.| (default, Dec 7 2015, 11:24:55)
  IPython version : 4.0.3
  Bokeh version : 0.11.1dev2
  BokehJS static path : /Users/bryan/anaconda/envs/bk11/lib/python3.5/site-packages/bokeh/server/static

This will also be in the upcoming 0.11.1 point release.

Thanks,

Bryan

···

On Jan 22, 2016, at 11:19 AM, [email protected] wrote:

Hi Bryan,

Thanks for the code examples.

So with Bokeh installed, I have all JS/CSS required to generate these offline standalone plots in an offline setting?

Thanks so much for taking the time to help. Really excited by the Gallery examples on what it can do:)

Cheers,

Richard

On Friday, 22 January 2016 12:06:57 UTC-5, Bryan Van de ven wrote:
Hi Richard,

Until 0.11 this was actually the default mode of operation, but folks asked for CDN loading to be the default, so that change was made. But you can still use INLINE resources explicitly you can create self-contained standalone documents. This is available in bokeh.resources:

        from bokeh.resources import INLINE

And can be passed to many of the output functions, e.g., file_html:

        with open(filename, "w") as f:
                f.write(file_html(doc, INLINE, "Demonstration of inline resources"))

This creates a standalone HTML document with all data, JS and CSS embedded inside the one file.

It is also possible to spell this intention another way, by simply passing mode="inline" to output_file (if you are using output_file):

        output_file(file_path, mode='inline')

Finally, you could also serve the Bokeh JS and CSS resources yourself on your own server on your internal network, and create documents that load the resources from there. This is a little bit more involved (and I'd have to refresh my memory in some cases) so unless you are interested specifically in this scenario I won't expand further here.

Thanks,

Bryan

> On Jan 22, 2016, at 10:45 AM, richard...@gmail.com wrote:
>
> Hi folks,
>
> I'm evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.
>
> I have Googled for this but it's not clear to me how to achieve this.
>
> Would appreciate any help/links/pointers.
>
>
> Cheers,
>
> Richar
>
> --
> 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/ee2ed429-b9de-4bc4-ad2f-26c453ec7380%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/8295b83b-3801-438c-98a0-f7351eb81908%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks so much Bryan.

Have an awesome weekend!

Cheers,

Richard

···

On Friday, 22 January 2016 12:33:14 UTC-5, Bryan Van de ven wrote:

Richard,

Yes, they are bundled with the python library as part of our automated build and release process. If you have one of the latest “dev builds”, you can easily find the location on the filesystem with the new “bokeh info” command:

    $ bokeh info
    Python version : 3.5.1 |Continuum Analytics, Inc.| (default, Dec 7 2015, 11:24:55)
    IPython version : 4.0.3
    Bokeh version : 0.11.1dev2
    BokehJS static path : /Users/bryan/anaconda/envs/bk11/lib/python3.5/site-packages/bokeh/server/static

This will also be in the upcoming 0.11.1 point release.

Thanks,

Bryan

On Jan 22, 2016, at 11:19 AM, [email protected] wrote:

Hi Bryan,

Thanks for the code examples.

So with Bokeh installed, I have all JS/CSS required to generate these offline standalone plots in an offline setting?

Thanks so much for taking the time to help. Really excited by the Gallery examples on what it can do:)

Cheers,

Richard

On Friday, 22 January 2016 12:06:57 UTC-5, Bryan Van de ven wrote:

Hi Richard,

Until 0.11 this was actually the default mode of operation, but folks asked for CDN loading to be the default, so that change was made. But you can still use INLINE resources explicitly you can create self-contained standalone documents. This is available in bokeh.resources:

    from bokeh.resources import INLINE

And can be passed to many of the output functions, e.g., file_html:

    with open(filename, "w") as f:
            f.write(file_html(doc, INLINE, "Demonstration of inline resources"))

This creates a standalone HTML document with all data, JS and CSS embedded inside the one file.

It is also possible to spell this intention another way, by simply passing mode=“inline” to output_file (if you are using output_file):

    output_file(file_path, mode='inline')

Finally, you could also serve the Bokeh JS and CSS resources yourself on your own server on your internal network, and create documents that load the resources from there. This is a little bit more involved (and I’d have to refresh my memory in some cases) so unless you are interested specifically in this scenario I won’t expand further here.

Thanks,

Bryan

On Jan 22, 2016, at 10:45 AM, [email protected] wrote:

Hi folks,

I’m evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.

I have Googled for this but it’s not clear to me how to achieve this.

Would appreciate any help/links/pointers.

Cheers,

Richar


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/ee2ed429-b9de-4bc4-ad2f-26c453ec7380%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/8295b83b-3801-438c-98a0-f7351eb81908%40continuum.io.

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

you can also just do:

from bokeh.io import output_file, save
output_file('myhtml.html', mode='inline')
# setup your plot
save(plot)

If you want it to just open when you run the script, try show instead of
save.

More reading:

Best, Bird

···

On 1/22/16 9:06 AM, Bryan Van de Ven wrote:

Hi Richard,

Until 0.11 this was actually the default mode of operation, but folks asked for CDN loading to be the default, so that change was made. But you can still use INLINE resources explicitly you can create self-contained standalone documents. This is available in bokeh.resources:

  from bokeh.resources import INLINE

And can be passed to many of the output functions, e.g., file_html:

        with open(filename, "w") as f:
    f.write(file_html(doc, INLINE, "Demonstration of inline resources"))

This creates a standalone HTML document with all data, JS and CSS embedded inside the one file.

It is also possible to spell this intention another way, by simply passing mode="inline" to output_file (if you are using output_file):

  output_file(file_path, mode='inline')

Finally, you could also serve the Bokeh JS and CSS resources yourself on your own server on your internal network, and create documents that load the resources from there. This is a little bit more involved (and I'd have to refresh my memory in some cases) so unless you are interested specifically in this scenario I won't expand further here.

Thanks,

Bryan

On Jan 22, 2016, at 10:45 AM, [email protected] wrote:

Hi folks,

I'm evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.

I have Googled for this but it's not clear to me how to achieve this.

Would appreciate any help/links/pointers.

Cheers,

Richar

--
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/ee2ed429-b9de-4bc4-ad2f-26c453ec7380%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks Sarah for the example and links:)

···

On Jan 22, 2016 8:52 PM, “Sarah Bird” [email protected] wrote:

you can also just do:

from bokeh.io import output_file, save

output_file(‘myhtml.html’, mode=‘inline’)

setup your plot

save(plot)

If you want it to just open when you run the script, try show instead of

save.

More reading:

http://bokeh.pydata.org/en/latest/docs/reference/io.html

http://bokeh.pydata.org/en/latest/docs/reference/embed.html

Best, Bird

On 1/22/16 9:06 AM, Bryan Van de Ven wrote:

Hi Richard,

Until 0.11 this was actually the default mode of operation, but folks asked for CDN loading to be the default, so that change was made. But you can still use INLINE resources explicitly you can create self-contained standalone documents. This is available in bokeh.resources:

  from bokeh.resources import INLINE

And can be passed to many of the output functions, e.g., file_html:

    with open(filename, "w") as f:
          f.write(file_html(doc, INLINE, "Demonstration of inline resources"))

This creates a standalone HTML document with all data, JS and CSS embedded inside the one file.

It is also possible to spell this intention another way, by simply passing mode=“inline” to output_file (if you are using output_file):

  output_file(file_path, mode='inline')

Finally, you could also serve the Bokeh JS and CSS resources yourself on your own server on your internal network, and create documents that load the resources from there. This is a little bit more involved (and I’d have to refresh my memory in some cases) so unless you are interested specifically in this scenario I won’t expand further here.

Thanks,

Bryan

On Jan 22, 2016, at 10:45 AM, [email protected] wrote:

Hi folks,

I’m evaluating Bokeh for a project. One requirement is the ability to operate in an offline environment. There will be no external internet connection available to the client.

I have Googled for this but it’s not clear to me how to achieve this.

Would appreciate any help/links/pointers.

Cheers,

Richar

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/ee2ed429-b9de-4bc4-ad2f-26c453ec7380%40continuum.io.

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

You received this message because you are subscribed to a topic in the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/Ts2P24YR0VU/unsubscribe.

To unsubscribe from this group and all its topics, 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/56A2DCE7.9040201%40gmail.com.

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

Hello Bry, I have a question, I want to load my bokeh app using https. I am currently running it behind tornado, and it is where I put my ssl configurations. However, the bokeh app does not show and I've read somewhere that I also have to use https (CDN) to load the sources. But our workstation does not have internet connection so I need to load the sources offline via INLINE. I don't know if I am making sense (I hope I do) but your help will be greatly appreciated.

Hi,

Bokeh apps use either CDN nor inline resources. In order to make sure that the app uses exactly the version of BokehJS corresponding to the version of the server, Bokeh apps *always* load Bokeh JS directly from the Bokeh server.

There is currently a problem with the recently released Tornado 4.5. It came out after the last stable Bokeh release, but is incompatible. Please first make sure you do NOT have Tornado 4.5 installed. The next release of Bokeh will work with Tornado 4.5 again.

If that's not the issue then more information about your setup, etc. would be needed. Normally to get HTTPS, I run Bokeh behind a proxy like Nginx, so if you are doing it directly with tornado that's actually outside my experience.

Thanks,

Byan

···

On May 24, 2017, at 03:11, [email protected] wrote:

Hello Bry, I have a question, I want to load my bokeh app using https. I am currently running it behind tornado, and it is where I put my ssl configurations. However, the bokeh app does not show and I've read somewhere that I also have to use https (CDN) to load the sources. But our workstation does not have internet connection so I need to load the sources offline via INLINE. I don't know if I am making sense (I hope I do) but your help will be greatly appreciated.

--
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/fdb8d0e4-e014-4f7d-84fc-ef6a8519547e%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi. I’m trying to plot maps using Bokeh offline. How can I do that?

···

On Thursday, May 25, 2017 at 12:00:59 AM UTC+9, Bryan Van de ven wrote:

Hi,

Bokeh apps use either CDN nor inline resources. In order to make sure that the app uses exactly the version of BokehJS corresponding to the version of the server, Bokeh apps always load Bokeh JS directly from the Bokeh server.

There is currently a problem with the recently released Tornado 4.5. It came out after the last stable Bokeh release, but is incompatible. Please first make sure you do NOT have Tornado 4.5 installed. The next release of Bokeh will work with Tornado 4.5 again.

If that’s not the issue then more information about your setup, etc. would be needed. Normally to get HTTPS, I run Bokeh behind a proxy like Nginx, so if you are doing it directly with tornado that’s actually outside my experience.

Thanks,

Byan

On May 24, 2017, at 03:11, [email protected] wrote:

Hello Bry, I have a question, I want to load my bokeh app using https. I am currently running it behind tornado, and it is where I put my ssl configurations. However, the bokeh app does not show and I’ve read somewhere that I also have to use https (CDN) to load the sources. But our workstation does not have internet connection so I need to load the sources offline via INLINE. I don’t know if I am making sense (I hope I do) but your help will be greatly appreciated.


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/fdb8d0e4-e014-4f7d-84fc-ef6a8519547e%40continuum.io.

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

Hi,

I don't think this is possible, since map plots require access to resources that are not provided by Bokeh itself. GMapPlot requires network access to Google Maps servers, and TileRenderer plots require network access to whatever tile server is configured.

Thanks,

Bryan

···

On Mar 11, 2019, at 8:52 PM, [email protected] wrote:

Hi. I'm trying to plot maps using Bokeh offline. How can I do that?

On Thursday, May 25, 2017 at 12:00:59 AM UTC+9, Bryan Van de ven wrote:
Hi,

Bokeh apps use either CDN nor inline resources. In order to make sure that the app uses exactly the version of BokehJS corresponding to the version of the server, Bokeh apps *always* load Bokeh JS directly from the Bokeh server.

There is currently a problem with the recently released Tornado 4.5. It came out after the last stable Bokeh release, but is incompatible. Please first make sure you do NOT have Tornado 4.5 installed. The next release of Bokeh will work with Tornado 4.5 again.

If that's not the issue then more information about your setup, etc. would be needed. Normally to get HTTPS, I run Bokeh behind a proxy like Nginx, so if you are doing it directly with tornado that's actually outside my experience.

Thanks,

Byan

> On May 24, 2017, at 03:11, nasayao...@gmail.com wrote:
>
> Hello Bry, I have a question, I want to load my bokeh app using https. I am currently running it behind tornado, and it is where I put my ssl configurations. However, the bokeh app does not show and I've read somewhere that I also have to use https (CDN) to load the sources. But our workstation does not have internet connection so I need to load the sources offline via INLINE. I don't know if I am making sense (I hope I do) but your help will be greatly appreciated.
>
> --
> 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/fdb8d0e4-e014-4f7d-84fc-ef6a8519547e%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/9ca326ce-6be5-4669-83c4-f1826ee702e1%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thank you! This will keep me from spending more time trying to make it work.

Sam

···

Psalms 127: 1
Unless the Lord builds the house, They labor in vain who build it;
Unless the Lord guards the city, The watchman stays awake in vain.

You can easily generate a Bokeh stand-alone app (SPA) containing a map from a local .csv or .shp or .json file.
Then you can share it with others via email or put it on your server and all will work fine.
The map can be as interactive as you want by applying JS callbacks (BokehJS)

There are plenties of examples and tutorials on the internet on how to generate a map from a local resource.
Just google it.

···

On Tuesday, March 12, 2019 at 6:41:59 AM UTC+1, Sam Freda wrote:

Thank you! This will keep me from spending more time trying to make it work.

Sam

On Tue, Mar 12, 2019 at 1:40 PM Bryan Van de ven [email protected] wrote:

Hi,

I don’t think this is possible, since map plots require access to resources that are not provided by Bokeh itself. GMapPlot requires network access to Google Maps servers, and TileRenderer plots require network access to whatever tile server is configured.

Thanks,

Bryan

On Mar 11, 2019, at 8:52 PM, [email protected] wrote:

Hi. I’m trying to plot maps using Bokeh offline. How can I do that?

On Thursday, May 25, 2017 at 12:00:59 AM UTC+9, Bryan Van de ven wrote:

Hi,

Bokeh apps use either CDN nor inline resources. In order to make sure that the app uses exactly the version of BokehJS corresponding to the version of the server, Bokeh apps always load Bokeh JS directly from the Bokeh server.

There is currently a problem with the recently released Tornado 4.5. It came out after the last stable Bokeh release, but is incompatible. Please first make sure you do NOT have Tornado 4.5 installed. The next release of Bokeh will work with Tornado 4.5 again.

If that’s not the issue then more information about your setup, etc. would be needed. Normally to get HTTPS, I run Bokeh behind a proxy like Nginx, so if you are doing it directly with tornado that’s actually outside my experience.

Thanks,

Byan

On May 24, 2017, at 03:11, [email protected] wrote:

Hello Bry, I have a question, I want to load my bokeh app using https. I am currently running it behind tornado, and it is where I put my ssl configurations. However, the bokeh app does not show and I’ve read somewhere that I also have to use https (CDN) to load the sources. But our workstation does not have internet connection so I need to load the sources offline via INLINE. I don’t know if I am making sense (I hope I do) but your help will be greatly appreciated.

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/fdb8d0e4-e014-4f7d-84fc-ef6a8519547e%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/9ca326ce-6be5-4669-83c4-f1826ee702e1%40continuum.io.

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

You received this message because you are subscribed to a topic in the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/Ts2P24YR0VU/unsubscribe.

To unsubscribe from this group and all its topics, 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/5E5B6E52-A419-45B5-9757-9C511A3C9016%40bokeh.org.

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


Psalms 127: 1
Unless the Lord builds the house, They labor in vain who build it;
Unless the Lord guards the city, The watchman stays awake in vain.

By "map" I assumed something specific was desired. Certainly if someone wants to make cartograms in standalone pages, that's fine, e.g.

  https://bokeh.pydata.org/en/latest/docs/gallery/texas.html

Thanks,

Bryan

···

On Mar 12, 2019, at 3:47 AM, [email protected] wrote:

You can easily generate a Bokeh stand-alone app (SPA) containing a map from a local .csv or .shp or .json file.
Then you can share it with others via email or put it on your server and all will work fine.
The map can be as interactive as you want by applying JS callbacks (BokehJS)
There are plenties of examples and tutorials on the internet on how to generate a map from a local resource.
Just google it.

On Tuesday, March 12, 2019 at 6:41:59 AM UTC+1, Sam Freda wrote:
Thank you! This will keep me from spending more time trying to make it work.
Sam

On Tue, Mar 12, 2019 at 1:40 PM Bryan Van de ven <[email protected]> wrote:
Hi,

I don't think this is possible, since map plots require access to resources that are not provided by Bokeh itself. GMapPlot requires network access to Google Maps servers, and TileRenderer plots require network access to whatever tile server is configured.

Thanks,

Bryan

> On Mar 11, 2019, at 8:52 PM, same...@gmail.com wrote:
>
> Hi. I'm trying to plot maps using Bokeh offline. How can I do that?
>
> On Thursday, May 25, 2017 at 12:00:59 AM UTC+9, Bryan Van de ven wrote:
> Hi,
>
> Bokeh apps use either CDN nor inline resources. In order to make sure that the app uses exactly the version of BokehJS corresponding to the version of the server, Bokeh apps *always* load Bokeh JS directly from the Bokeh server.
>
> There is currently a problem with the recently released Tornado 4.5. It came out after the last stable Bokeh release, but is incompatible. Please first make sure you do NOT have Tornado 4.5 installed. The next release of Bokeh will work with Tornado 4.5 again.
>
> If that's not the issue then more information about your setup, etc. would be needed. Normally to get HTTPS, I run Bokeh behind a proxy like Nginx, so if you are doing it directly with tornado that's actually outside my experience.
>
> Thanks,
>
> Byan
>
>
> > On May 24, 2017, at 03:11, nasayao...@gmail.com wrote:
> >
> > Hello Bry, I have a question, I want to load my bokeh app using https. I am currently running it behind tornado, and it is where I put my ssl configurations. However, the bokeh app does not show and I've read somewhere that I also have to use https (CDN) to load the sources. But our workstation does not have internet connection so I need to load the sources offline via INLINE. I don't know if I am making sense (I hope I do) but your help will be greatly appreciated.
> >
> > --
> > 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/fdb8d0e4-e014-4f7d-84fc-ef6a8519547e%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 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/9ca326ce-6be5-4669-83c4-f1826ee702e1%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to a topic in the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/Ts2P24YR0VU/unsubscribe\.
To unsubscribe from this group and all its topics, 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/5E5B6E52-A419-45B5-9757-9C511A3C9016%40bokeh.org\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
Psalms 127: 1
Unless the Lord builds the house, They labor in vain who build it;
     Unless the Lord guards the city, The watchman stays awake in vain.

--
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/0bbe1866-ee22-4cf3-8c00-a3e46b08a8ac%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan
I need to use Bokeh in an offline environment. We are already using local files for the CDN and all that.
What we are laking is the maps part.

Looking at the documentation, it seems that it is possible to add new tiles providers. Would it be possible to create a new tile provider that works locally?

Best,

Daniel

It seems plausible, but I have no direct experience to share. AFAIK tile providers follow a somewhat similar URL scheme (that your local server would also need to implement). I can really only point to the definitions of the existing tile provider classes for you to reference, which are here:

https://github.com/bokeh/bokeh/blob/branch-2.4/bokeh/tile_providers.py

Edit: @daluar I only just noticed this was a reply to a very old post. In the future please prefer to start new topics rather than resurrecting years-old ones (you can link to the old one in the new topic, if need be)