8

Jupyter Notebook

Hi, what's the proper way to exit ipdb interactive console running in a Jupyter Notebook cell? I've tried exit, quit, Ctrl-Z, Ctrl-C, Ctrl-D (throws up the bookmark request in chrome)

Update: Tried sys.exit(), it killed the kernel of the notebook. How can we just exit the interactive shell without affecting the notebook?

2 Answers 2

2

In ipdb in interactive mode I exit using: from sys import exit; exit()

Sign up to request clarification or add additional context in comments.

Comments

-2

type in q to "quit". It works just like regular debug console in terminal

2 Comments

Doesn't work once you've entered interactive mode.
Worked for me after entering interactive mode. Using JupyterLab 4.0.8

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.