Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly exit ipdb interactive console in Jupyter Notebook?

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?

like image 376
Stark Avatar asked Nov 27 '22 14:11

Stark


1 Answers

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

like image 97
Bjoern Dahlgren Avatar answered Nov 29 '22 04:11

Bjoern Dahlgren