Reputation: 30605
I everyday try out my solutions before answering a pandas question in stack overflow . Usually after two to three days the jupyter notebook I use will be with n number of cells. Is there a way to delete all cells at once other than creating new notebook by deleting current one?
D D
deletes one cell at a time.
Upvotes: 13
Views: 13059
Reputation: 51
<ESC><CTRL-A>
Select all cells<ESC><D><D>
Delete all selected cells<ESC>P
will bring up the list of commands and key bindings
Upvotes: 2
Reputation: 81
esc
to exit edit modeend
to scroll to the bottom of the notebookd, d
to delete all the selected cells.Hope that helps.
Upvotes: 1
Reputation: 14689
You can delete all Jupyter notebook's cells at once as follows:
ESC + SHIFT + DOWN
(starting from the top)ESC + D D
(D twice)Upvotes: 30