Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete cell ipython 2.0

There is probably a very easy solution to this but I'm not sure what it is. Delete cell command in IPython 1.2 used to be:

ctrl-m d 

according to the help menu in version 2.0 it says,

Shift-d: delete cell(press twice)  

I've tried holding shift then pressing d twice and various combinations with shift and d and nothing seems to work.. Am I just doing this wrong or the command is actually not working? Any help would be appreciated.

like image 429
pbreach Avatar asked May 12 '14 22:05

pbreach


People also ask

How do I delete cells in Ipython?

“delete a cell in jupyter notebook” Code Answer'sD+D(press the key twice when you are in command mode) to delete the selected cell.

How do I delete a cell in Jupyter notebook?

D + D (press the key twice) to delete the current cell.


2 Answers

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.

like image 119
dmvianna Avatar answered Oct 12 '22 15:10

dmvianna


To delete a cell, just click on the part margin part of the cell, the part that is not code or output ( right below the Ln[7]: in the picture below), and simply press the d key twice. Clicking there selects the entire cell and allows you to use keyboard short cuts like delete and or create a cell above or below.

enter image description here

like image 21
agconti Avatar answered Oct 12 '22 13:10

agconti