Embed bokeh plot in markdown

I could not find any documentation on embedding bokeh plots in markdown styled documents. Is there an easy way to do this using the script and div tags that bokeh.embed.components ?

Hi,

That really depends entirely upon what system you are using to process and render the markdown. For instance, GitHub scrubs all JavaScript from Markdown that it renders, so it is not possible to embed Bokeh plots in Github-rendered Markdown documents at all. Some systems have their own special or unique tags you have to use, others allow and pass on raw HTML as-is to the rendered documents. I don't think that it is possible for us to give any general guidance with respect to markdown. We provide the capability to get scripts and divs that can potentially be used for embedding, but you will have to consult the documentation or community for the system you are using to know what their specific syntax or limitations are to know how to use them with that particular system.

Thanks,

Bryan

···

On Dec 21, 2015, at 5:48 PM, [email protected] wrote:
I could not find any documentation on embedding bokeh plots in markdown styled documents. Is there an easy way to do this using the script and div tags that bokeh.embed.components ?

--
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/f67c48e7-7298-4ef6-987c-1215a03cbe73%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks Bryan, I forgot to mention I am using github pages to render. So their base auto generator for pages might not work and maybe the jekyll one will work if i customize the page.
Thanks for the answer.

···

On Monday, December 21, 2015 at 4:02:20 PM UTC-8, Bryan Van de ven wrote:

Hi,

That really depends entirely upon what system you are using to process and render the markdown. For instance, GitHub scrubs all JavaScript from Markdown that it renders, so it is not possible to embed Bokeh plots in Github-rendered Markdown documents at all. Some systems have their own special or unique tags you have to use, others allow and pass on raw HTML as-is to the rendered documents. I don’t think that it is possible for us to give any general guidance with respect to markdown. We provide the capability to get scripts and divs that can potentially be used for embedding, but you will have to consult the documentation or community for the system you are using to know what their specific syntax or limitations are to know how to use them with that particular system.

Thanks,

Bryan

On Dec 21, 2015, at 5:48 PM, [email protected] wrote:

I could not find any documentation on embedding bokeh plots in markdown styled documents. Is there an easy way to do this using the script and div tags that bokeh.embed.components ?


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/f67c48e7-7298-4ef6-987c-1215a03cbe73%40continuum.io.

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

Ajinkya,

I do believe Jekyll has a way to include raw HTML in markdown. If you find out the way, please let us know, we could collect some specific guidance to our FAQ or other documentation. I'll also add that I'm not entirely sure about gh-pages. In my other message I was referring to Markdown rendered directly on the GH site (README.md files, for instance). I think the gh-pages functionality might be more permissive (but I'm not certain).

Bryan

···

On Dec 21, 2015, at 7:26 PM, Ajinkya Kale <[email protected]> wrote:

Thanks Bryan, I forgot to mention I am using github pages to render. So their base auto generator for pages might not work and maybe the jekyll one will work if i customize the page.
Thanks for the answer.

On Monday, December 21, 2015 at 4:02:20 PM UTC-8, Bryan Van de ven wrote:
Hi,

That really depends entirely upon what system you are using to process and render the markdown. For instance, GitHub scrubs all JavaScript from Markdown that it renders, so it is not possible to embed Bokeh plots in Github-rendered Markdown documents at all. Some systems have their own special or unique tags you have to use, others allow and pass on raw HTML as-is to the rendered documents. I don't think that it is possible for us to give any general guidance with respect to markdown. We provide the capability to get scripts and divs that can potentially be used for embedding, but you will have to consult the documentation or community for the system you are using to know what their specific syntax or limitations are to know how to use them with that particular system.

Thanks,

Bryan

> On Dec 21, 2015, at 5:48 PM, [email protected] wrote:
> I could not find any documentation on embedding bokeh plots in markdown styled documents. Is there an easy way to do this using the script and div tags that bokeh.embed.components ?
>
> --
> 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/f67c48e7-7298-4ef6-987c-1215a03cbe73%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/6b796f16-b0d2-4ca9-960f-80bfb022f23d%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Yes, the easiest way to create the gh-page uses .md file where it is hard to get much scripts in, or its just that I dont know a way as I am inexperienced with js and the like. I will let you know if I am able to embed it using jekyll.

···

On Mon, Dec 21, 2015 at 5:49 PM Bryan Van de Ven [email protected] wrote:

Ajinkya,

I do believe Jekyll has a way to include raw HTML in markdown. If you find out the way, please let us know, we could collect some specific guidance to our FAQ or other documentation. I’ll also add that I’m not entirely sure about gh-pages. In my other message I was referring to Markdown rendered directly on the GH site (README.md files, for instance). I think the gh-pages functionality might be more permissive (but I’m not certain).

Bryan

On Dec 21, 2015, at 7:26 PM, Ajinkya Kale [email protected] wrote:

Thanks Bryan, I forgot to mention I am using github pages to render. So their base auto generator for pages might not work and maybe the jekyll one will work if i customize the page.

Thanks for the answer.

On Monday, December 21, 2015 at 4:02:20 PM UTC-8, Bryan Van de ven wrote:

Hi,

That really depends entirely upon what system you are using to process and render the markdown. For instance, GitHub scrubs all JavaScript from Markdown that it renders, so it is not possible to embed Bokeh plots in Github-rendered Markdown documents at all. Some systems have their own special or unique tags you have to use, others allow and pass on raw HTML as-is to the rendered documents. I don’t think that it is possible for us to give any general guidance with respect to markdown. We provide the capability to get scripts and divs that can potentially be used for embedding, but you will have to consult the documentation or community for the system you are using to know what their specific syntax or limitations are to know how to use them with that particular system.

Thanks,

Bryan

On Dec 21, 2015, at 5:48 PM, [email protected] wrote:

I could not find any documentation on embedding bokeh plots in markdown styled documents. Is there an easy way to do this using the script and div tags that bokeh.embed.components ?

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/f67c48e7-7298-4ef6-987c-1215a03cbe73%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/6b796f16-b0d2-4ca9-960f-80bfb022f23d%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/16178D6A-1DE9-44BB-8D2D-0A74060195CB%40continuum.io.

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

This SO might help: http://stackoverflow.com/questions/30233461/jekyll-raw-html-in-post

···

On Mon, Dec 21, 2015, 9:17 PM Ajinkya Kale [email protected] wrote:

Yes, the easiest way to create the gh-page uses .md file where it is hard to get much scripts in, or its just that I dont know a way as I am inexperienced with js and the like. I will let you know if I am able to embed it using jekyll.

On Mon, Dec 21, 2015 at 5:49 PM Bryan Van de Ven [email protected] wrote:

Ajinkya,

I do believe Jekyll has a way to include raw HTML in markdown. If you find out the way, please let us know, we could collect some specific guidance to our FAQ or other documentation. I’ll also add that I’m not entirely sure about gh-pages. In my other message I was referring to Markdown rendered directly on the GH site (README.md files, for instance). I think the gh-pages functionality might be more permissive (but I’m not certain).

Bryan

On Dec 21, 2015, at 7:26 PM, Ajinkya Kale [email protected] wrote:

Thanks Bryan, I forgot to mention I am using github pages to render. So their base auto generator for pages might not work and maybe the jekyll one will work if i customize the page.

Thanks for the answer.

On Monday, December 21, 2015 at 4:02:20 PM UTC-8, Bryan Van de ven wrote:

Hi,

That really depends entirely upon what system you are using to process and render the markdown. For instance, GitHub scrubs all JavaScript from Markdown that it renders, so it is not possible to embed Bokeh plots in Github-rendered Markdown documents at all. Some systems have their own special or unique tags you have to use, others allow and pass on raw HTML as-is to the rendered documents. I don’t think that it is possible for us to give any general guidance with respect to markdown. We provide the capability to get scripts and divs that can potentially be used for embedding, but you will have to consult the documentation or community for the system you are using to know what their specific syntax or limitations are to know how to use them with that particular system.

Thanks,

Bryan

On Dec 21, 2015, at 5:48 PM, [email protected] wrote:

I could not find any documentation on embedding bokeh plots in markdown styled documents. Is there an easy way to do this using the script and div tags that bokeh.embed.components ?

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/f67c48e7-7298-4ef6-987c-1215a03cbe73%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/6b796f16-b0d2-4ca9-960f-80bfb022f23d%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/16178D6A-1DE9-44BB-8D2D-0A74060195CB%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/CAJhf4T8YVjQ6ptWKnTxwMa9QiJSQSMeTiBD8U5s0uH8QpmRUZw%40mail.gmail.com.

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