Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to delete all cells at once in jupyter?

Tags:

python

jupyter

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.

like image 238
Bharath Avatar asked Nov 23 '17 15:11

Bharath


People also ask

How do I delete cells in JupyterLab?

D+D(press the key twice when you are in command mode) to delete the selected cell.


1 Answers

You can delete all Jupyter notebook's cells at once as follows:

  1. Select all cells : ESC + SHIFT + DOWN (starting from the top)
  2. Then click ESC + D D (D twice)
like image 119
Mohamed Ali JAMAOUI Avatar answered Oct 13 '22 09:10

Mohamed Ali JAMAOUI