[PyQt] PyQt event linking to jupyter/ipython notebook cell
mitelutco at gmail.com
Tue Oct 18 00:19:28 BST 2016
I was wondering if anyone knows how to enable jupyter notebook to interact
with a PyQt generated widget after calling app.exec_()? The intrinsic
mouseEvent() functions do work, but the cells in the notebook are locked
out until the widget is closed manually.
It seems I have to call/execute the QApplication in a special way or
connect the notebook to it somehow, but can't figure it out.
#FIGURE CLASS: initialization of figure object and execution
Main API functions
print "... initializing canvas ..."
self.app = QApplication(sys.argv)
def show(self): #Show
self.GUI = GLWindow(data)
#JUPYTER NOTEBOOK CODE: figure instantiation and display
fig = plb.figure()
fig.show() #Locks out any further jupyter commands while widget on screen
fig.update() #Does not get executed until widget is closed
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt