-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
killing notebook is unreliable #270
Comments
|
Right now, if you want to kill the notebook you should really just close Julia entirely; the Maybe the right thing is for
would be problematic to interrupt, and whether there is a better way to isolate it? |
Perhaps you want to add a detach() to that Cmd object? I don't know how you are interrupting the code currently |
@vtjnash, people are just interrupting |
Oh. Yes, it should have a detach call then so that signals don't propagate to the child processes |
But if you run The problem is not that I don't like ctrl-c, it is that ctrl-c is leaving Julia in a non-functional state. |
True. Currently Julia workers kill themselves when they see a SIGPIPE. Can IPython do something similar? |
I think IPython exits cleanly only on SIGINT or SIGTERM; see ipython/ipython#1609 |
@vtjnash , we changed julia processes to ignore SIGPIPE. But they do exit when the socket connected to the master process is closed, actually on any error in the the task blocking on a read from the master. |
related - JuliaLang/julia#9095 |
This still seems to be a problem on MacOS due to JuliaLang/julia#18146 ... the |
Okay, the problem on my machine seems to be because (for historical reasons) my IJulia was running the notebook via I still think that there should be a way to |
After I run notebook() in Julia and close the notebook, my Julia will be extremely slow.
I have no idea if this is caused by my improperly exiting notebook (I always use ctrl+c in the terminal to interrupt it).
The following error message pop-up when the notebook is interrupted:
ERROR: interrupt
in process_events at ./stream.jl:537
in wait at ./task.jl:273
in wait at ./task.jl:194
in stream_wait at ./stream.jl:263
in wait at ./process.jl:619
in success at process.jl:492
in notebook at /home/ryanli/.julia/v0.3/IJulia/src/IJulia.jl:177
in notebook at /home/ryanli/.julia/v0.3/IJulia/src/IJulia.jl:176
The text was updated successfully, but these errors were encountered: