-
Notifications
You must be signed in to change notification settings - Fork 283
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
set close_fds=False when starting kernels on Windows #408
Conversation
Python 3.7 sets close_fds=True by default, closing the interrupt/parent handles we are trying to pass to the kernel.
Per @ccordoba12 's request, I tried to test this on Windows but I got a huge chain of exceptions trying to install it locally, starting with |
@CAM-Gerlach that sounds like conda-forge/testpath-feedstock#7 which I believe is fixed in the latest conda package of testpath, so I think |
@minrk Thanks! That did indeed resolve the problem (I'd assumed it was just some machine or OS-specific issue with pip), and testing the fix this does indeed resolve the stated problem. |
Yes, not being able to interrupt Thanks for confirming! We should do a release shortly. |
Thanks @minrk ! I seem to recall reading something to that effect previously and I just chalked it up (like most |
…on-5.x Backport PR #408 on branch 5.x (set close_fds=False when starting kernels on Windows)
Sorry, I have a basic question. Which file do I have to edit in order to set close_fds=False when starting kernels on Windows? |
@papagala |
Jupyter client < 5.2.4 was unable to interrupt on Windows with Python 3.7+. See jupyter/jupyter_client#408
Python 3.7 sets close_fds=True by default, closing the interrupt/parent handles we are trying to pass to the kernel.
We can be more explicit and use the new STARTUPINFO.lpAttributeList (the reason for the change in default behavior) in the future to explicitly inherit only these handles, but this preserves the pre-3.7 behavior on 3.7, getting kernels back to working on py37.
closes ipython/ipykernel#374
cf spyder-ide/spyder#8013