How to run `wx python` in Jupyter Notebook

Viewed 831

How to run wx Python module in Jupyter notebook and execute the code successfully?

2 Answers

Have you tried using the %gui wx magic? It will create an wx.App object and integrate the wx mainloop with the Jupyter message handling loop. Notice that I didn't need to create a wx.App nor run MainLoop in the screenshot below.

screenshot

enter image description here enter image description here

We need to execute 4th line and 5th line separately.

enter image description here

Related