I can't seem to get flask and cefpython to work together. When I combine the code for plotly with cefpython3, python will only run one or the other (cefpython or flask/plotly), but will not run both at the same time in a single script.
From my observation, both cefpython and flask have 'block until quit' mechanisms. For instance, if I ran plotly only, my CMD window has an alert: running x y z... (Press CTRL+C to quit). --- So no other code is executed until i press CTRL+C. Then, on the cefpython side,
messageloop() will block until quit. So no additional code is executed until the cefpython process terminates. Even if I put print("hello world") after messageloop(), this will not print until i close the cefpython application window.
Hopefully, this is just limited by my understanding of python and threading, and I'm missing a step somewhere. I tested your threading snapshot like this (with no luck):
assume this basic code structure:
```
def main() #cefpython
def plotlystuff()
def createThreading():
t1 = threading.Thread(target=main())
t1.setDaemon(True)
t1.start()
t2 = threading.Thread(target=plotlystuff())
t2.setDaemon(True)
t2.start()
if __name__ == '__main__':
createThreading()
```
Thanks for any help. I know this thread is old; but it's all I could find.