How do I make tkinter not block jupyter like matplotlib does?

  Kiến thức lập trình

I have matplotlib-based GUI app which takes inputs and plots graphs. It works just fine except that the UI is abysmally non-responsive (seconds before it reacts to mouse clicks or keyboard, on a fairly powerful windows box). I start it from jupyter notebook with %matplotlib qt, the GUI shows up, and the notebook is not blocked, so I can query and modify the underlying matplotlib objects interactively.

I want the same behavior from tkinter.ttk, but Tk.mainloop blocks. Is there a way around this?

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT