0

I'm trying to create an executable in python using either pyqt4 or tkinter and I want my GUI to be able to be interactive. I found bokeh and it seems like it can do everything I want.

However I was reading into bokeh and it seems that its main purpose is to make figures for embedding online using html. I'm not really familiar with html and I want my GUI to be able to pull up all the graphical data within my UI window rather than open an external link.

Is there a way to freeze my python scripts that utilize bokeh or plotly for a desktop application without embedding them online or using html?

Markus T.
  • 113
  • 1
  • 13

1 Answers1

0

you can use for sure plotly offline: e.g.:

import plotly
from plotly.graph_objs import Scatter, Layout

print(help(plotly.offline.plot))

plotly.offline.plot([Scatter(x=[1, 2, 3], y=[3, 2, 6])], filename='my-
graph.html')

then save the plot in a html file and use this file in PyQt: How do I rerender HTML PyQt4

Petronella
  • 2,327
  • 1
  • 15
  • 24