Booked & Jupyter notebook - offline and inline

Hello,

I am writing jupyter notebooks for data visualization in an environment that has no access to the internet. This is a problem because the default in Bokeh is now to load from CDN. So far I have been able to output plots by calling output_file(mode=‘inline’) before calling show… however, this generates another tab where the plot is shown… How can I achieve the same inline and offline? How should I configure Bokeh resources and output_notebook so that the JS is loaded offline?

Thank you

Best Regards

Damian

Damian,

The output_notebook function accepts a resources parameter:

  from bokeh.resources import INLINE

  output_noteboook(resources=INLINE)

Thanks,

Bryan

···

On Jul 14, 2016, at 12:56 AM, Damián SRA <[email protected]> wrote:

Hello,

I am writing jupyter notebooks for data visualization in an environment that has no access to the internet. This is a problem because the default in Bokeh is now to load from CDN. So far I have been able to output plots by calling output_file(mode='inline') before calling show... however, this generates another tab where the plot is shown... How can I achieve the same inline and offline? How should I configure Bokeh resources and output_notebook so that the JS is loaded offline?

Thank you

Best Regards

Damian

--
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/0f43e0ed-cb36-4629-bd52-99da9fe29e4e%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.