LMJWILL
LMJWILL

Reputation: 171

Spyder3 Ipython console threading issue

I was trying to implement an easy threading in python. I got the following code work in Spyder2 but it seems in spyder3, the print of e1 and e2 are printed at the same time. In spyder3, I also tried this code in python console instead of ipython console. It works fine in python console.

Can anyone let me know is this an issue for spyder3 or my configuration is incorrect? If my configuration is incorrect, can anyone help me to change it? Thanks a lot for your help.

import threading
def x(e1,e2):
    e1.wait(timeout=2)
    print("e1")
    e2.wait(timeout=2)
    print("e2")

e1 = threading.Event()
e2 = threading.Event()
t = threading.Thread(target=x,args=(e1,e2,))
t.start()

Upvotes: 1

Views: 774

Answers (1)

LMJWILL
LMJWILL

Reputation: 171

this issue can be solved by updating the anaconda package and qt package. See this thread for more details. Cheers. See here for more details

Upvotes: 1

Related Questions