Skip to content
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

Jupyter notebook exit not working properly #4400

Open
nishikeshKardak opened this issue Feb 12, 2019 · 4 comments
Open

Jupyter notebook exit not working properly #4400

nishikeshKardak opened this issue Feb 12, 2019 · 4 comments

Comments

@nishikeshKardak
Copy link

nishikeshKardak commented Feb 12, 2019

I'm working on my project, at some condition I want to stop the program. At that time, I was calling exit() function but unfortunately notebook did not exit the program. Even if the python program is working properly in python IDLE.

Expected

Notebook killed the program.

Actual

Notebook run program continuously and execute next block of statements.

@IamViditAgarwal
Copy link

@nishikeshKardak , As far I have understood using the exit() inside the function or outside the function in the Jupyter Notebook, will cause the Jupyter kernel to die

@Mark17b
Copy link

Mark17b commented Aug 6, 2021

I'm finding the same thing. I tried this because quit() did not work--the program skipped right past it. I then tried exit() instead and the kernel now dies.

What's an alternative, and do you know why quit() doesn't work?

@Frogsam
Copy link

Frogsam commented Oct 11, 2023

In case you guys are still alive and found the solution I'll offer many thanks if you can share it please

@EonRitz
Copy link

EonRitz commented Nov 6, 2023

use "break" instead of "quit()"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants