-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot exit ipython with running qcodes.Monitor() #5561
Comments
I can reproduce this. Not sure what is going on but perhaps related to #3814 It would be nice to investigate if changing the monitor thread to be a deamon thread would also resolve this issue |
Note that until this is resolved it can be mitigated by explicitly calling join on the monitor thread
|
I've tested turning the monitor thread into a daemon thread as you suggested, by passing the keyword argument I don't know if there's any more testing required, but happy to raise a PR for this if you like. |
@michaelc12qe In the long term I would like to come up with something slightly cleaner than deamon mode but I agree that in the short term using deamon is the best solution. So please go ahead |
Steps to reproduce
iPython version 8.10, qcodes version 0.42, Windows 10 Pro 22H2
monitor = Monitor()
It hangs instead of closing iPython. The terminal must be terminated.
The text was updated successfully, but these errors were encountered: