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\.