Where to start if I want to integrate bokeh into another notebook

Hi, first sorry if this is not the right place to ask this kind of question. I am trying to integrate bokeh into another notebook which is similar to jupyter.
I read some related source code of bokeh and want to start to write some code to verify my idea. But I don’t know where to start and how to test it. I didn’t find much infoation in this link http://bokeh.pydata.org/en/latest/docs/dev_guide.html

Could anyone point me to any related documentation or any guidance ? Thanks

Hi Jeff,

The best place to start might just be here:

  http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#embedding-plots-and-apps

My guess is that embedding is probably a matter of using one of those existing embed APIs, together with a template that is customized and appropriate for your situation. As an example, here is the trivial template used with bokeh.embed.components in the Jupyter notebook:

  https://github.com/bokeh/bokeh/blob/master/bokeh/core/_templates/notebook_div.html

The last matter is how to load the BokehJS resources. For reference, here is the script that does that in Jupyter:

  https://github.com/bokeh/bokeh/blob/master/bokeh/core/_templates/autoload_nb_js.js

Thanks,

Bryan

···

On Feb 11, 2017, at 03:02, Jeff Zhang <zjff[email protected]> wrote:

Hi, first sorry if this is not the right place to ask this kind of question. I am trying to integrate bokeh into another notebook which is similar to jupyter.
I read some related source code of bokeh and want to start to write some code to verify my idea. But I don't know where to start and how to test it. I didn't find much infoation in this link http://bokeh.pydata.org/en/latest/docs/dev_guide.html
Could anyone point me to any related documentation or any guidance ? Thanks

--
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/9dfe9c28-4363-49e2-b26e-18dd79747cb5%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks Bryan, this is very helpful.

在 2017年2月13日星期一 UTC+8下午11:28:58,Bryan Van de ven写道:

···

Hi Jeff,

The best place to start might just be here:

    [http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#embedding-plots-and-apps](http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#embedding-plots-and-apps)

My guess is that embedding is probably a matter of using one of those existing embed APIs, together with a template that is customized and appropriate for your situation. As an example, here is the trivial template used with bokeh.embed.components in the Jupyter notebook:

    [https://github.com/bokeh/bokeh/blob/master/bokeh/core/_templates/notebook_div.html](https://github.com/bokeh/bokeh/blob/master/bokeh/core/_templates/notebook_div.html)

The last matter is how to load the BokehJS resources. For reference, here is the script that does that in Jupyter:

    [https://github.com/bokeh/bokeh/blob/master/bokeh/core/_templates/autoload_nb_js.js](https://github.com/bokeh/bokeh/blob/master/bokeh/core/_templates/autoload_nb_js.js)

Thanks,

Bryan

On Feb 11, 2017, at 03:02, Jeff Zhang [email protected] wrote:

Hi, first sorry if this is not the right place to ask this kind of question. I am trying to integrate bokeh into another notebook which is similar to jupyter.
I read some related source code of bokeh and want to start to write some code to verify my idea. But I don’t know where to start and how to test it. I didn’t find much infoation in this link http://bokeh.pydata.org/en/latest/docs/dev_guide.html

Could anyone point me to any related documentation or any guidance ? Thanks


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/9dfe9c28-4363-49e2-b26e-18dd79747cb5%40continuum.io.

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