How to properly exit ipdb interactive console in Jupyter Notebook?
Asked Answered
K

2

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?

Kiersten answered 22/8, 2017 at 9:57 Comment(0)
M
2

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

Mammoth answered 1/6, 2021 at 12:12 Comment(0)
E
-2

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

Estival answered 4/12, 2017 at 2:35 Comment(2)
Doesn't work once you've entered interactive mode.Mammoth
Worked for me after entering interactive mode. Using JupyterLab 4.0.8Syzygy

© 2022 - 2024 — McMap. All rights reserved.