how to clear just one cell in jupyter notebook code example
Example 1: how to clear all cells in jupyter notebook
Press Esc to enter command mode.
Hold Shift . Select the first and last cells to select all cells. *
Press d twice to delete all selected cells.
Example 2: how to delete a cell in jupyter notebook
83
In the new IPython cells could have two states: when it has a green selection rectangle around it you can edit what's inside; when it has a grey rectangle around it you edit the cell itself (copy/paste/delete). Enter/Return makes it go green, Esc makes it go grey. When it is gray, 'dd' will delete it