
What are you trying to do?
At a high level, I am trying to embed a bokeh visualization (p) in a markdown page hosted with Github pages/Jekyll. I am trying to do with with {% include_relative p.html%}. I know it’s a little funky to place a complete HTML doc inside of another one, but it almost works perfectly and would be easy for me to implement over and over again. The only problem is the <!DOCTYPE html> is being rendered on the page as plain text since it’s the second occurrence and is inside the body of the actual page. It seems like there should be a way to customize the output of the .HTML so it’s exactly the same except without that tag (maybe with a Jinja template that is barely different from the default?), but I haven’t been able to do it. I can’t find a good example of how to actually use those templates and the appropriate syntax.
What have you tried that did NOT work as expected?
The other obvious options would seem to be autoload_static() or the components() method, but the problem with both of those is that I recreate the viz every day to include updated data it changes the id, so I’d have to manually replace the script in the MD page every day as well, which kind of defeats the purpose. Not to mention getting the js to work across github pages is tricky for me, I’m just trying to learn python/pandas/bokeh and not a ton of js.
I’ve kind of got it working with an iframe but I really don’t want to settle on that option if I can avoid it.

