I've been trying this simple example of embedding in Bokeh - that is, embedding a simple bokeh-based graph onto a html file. When I navigate to localhost:5000, it throws up an internal server error
webpage on my browser.
Normally, I wouldn't post anything here without some records of what I've tried, but there's nothing to try. This is the simplest example of embedding, which I'm trying to learn, and it's not working.
If i just download that file, and add debug=True
to the call to app.run
then it shows an actual exception:
jinja2.exceptions.TemplateNotFound: embed.html
If you look in the directory on GitHub you can see there is also a templates
directory with the embed.html
in it. Did you copy the example file without also copying the accompanying (and necessary) templates
directory?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.