I have following code that works on linux and my windows 7 machine even using WinPython environment:
# plt_file is valid html produced by Bokeh and that i
would this work better ?
plot = "" with open(plt_file, "r") as f: plot = f.read() # self.plot_web_view.setContent(plot) url = QUrl(plt_file) self.plot_web_view.setHtml(plot, url)