import pyqtgraph as pg
gw = pg.GraphicsWindow()
gw.show()
pg.mkQApp().exec_()
%gui qt in IPython (i.e. Jupyter or PyQt Console). This will enable GUI event loop integration. In the past PyQT could do this by itself but I don't know if it still can, so I would just use IPython for this – titusjan Apr 22 '17 at 11:31 "