It works for me with pyqt 5.8.2. I seem to recall some earlier versions of PyQt5 lacked the input hook; perhaps you just need a more recent version?
On Tue, Aug 8, 2017 at 8:07 AM, 민성원 <[email protected]> wrote: > Dear everyone! please help me to solve my basic question! > > I want to 2D plotting in command-line mode (ipython). at the description, > if I use pyqt, not pyside, I can use interactive mode to plotting. > but I can`t plotting in interactive mode, I must call QApplication.exec_() > to make the windows appear. > > my systems are > OS: macOS Sierra > Python: 3.5.3 > pyqt: 5.6.0 > pyqtgraph:0.10.0 > > I used qtconsole of anaconda navigator. my code are > > import pyqtgraph as pg > pg.plot([1,2,3]) # windows are not appears > pg.QtGui.QApplication.exec_() #windows and plot are appears, but > interactive console stop! > > how can I do that? > > -- > You received this message because you are subscribed to the Google Groups > "pyqtgraph" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/pyqtgraph/32c4b7ba-6f4f-447e-8a7f-13a667af8bd1%40googlegroups.com > <https://groups.google.com/d/msgid/pyqtgraph/32c4b7ba-6f4f-447e-8a7f-13a667af8bd1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CACZXET_u3KZsLiNEs5LeDnchZFRx94RcdqymGhxnDqFioj3O7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
