How to embed bokeh plot in Website or Medium?

Viewed 806

I completed a bokeh plot which I believe is a bokeh application. I wanted to embed it in my personal git hub page or Medium to make it interactive. I read through the bokeh docs but I still did not understand how things work. In the document it says to use server_document() function and a URL. Where should I get the URL ? below is the sample code from Bokeh document.

from bokeh.embed import server_document
script = server_document("https://demo.bokeh.org/sliders")

This is my bokeh plot github repository: https://github.com/Lastget/Covid19_Job_risks.git

This is the website I want to embed the code to https://github.com/Lastget/Lastget.github.io.git

Sorry I am new to building web pages. I did not know which file to embed my bokeh code to. I built this git page by pre-made template. I used markdown in _pages folder to make a post. Can I can embed an interactive bokeh plot in markdowns? Or should I embed it in some other HTML in this github page? Thank you so much for answering my question.

0 Answers
Related