Delete cell in Jupyter Notebook

Answered

Hello,

 

Is there a way to delete a cell in a Jupyter Notebook within Pycharm?

3
10 comments

You could press `Esc` and then use `Edit| Cut` or the corresponding shortcut for this action.
Please also check https://youtrack.jetbrains.com/issue/PY-25430 about adding the corresponding button to the Jupyter Notebook toolbar.

1

I'm trying to use PyCharm instead of Jupyter Lab, but there is no way to delete a cell, and when i add a markdown cell - its added to the end of the notebook, which is obviously not what is intended. Are those bugs or am i just doing something wrong?

0

Hello, 

 

This should be available in the next release (2020.2), please see the ticket  https://youtrack.jetbrains.com/issue/PY-34820 

0

Ok. I'm just curious -

  1. how come that the current version doesn't have this feature? Isn't it obvious that sometimes you'll need to delete a cell?
  2. And also you did not relate to the second problem - i.e. that when I add a markdown cell (via the ctrl+m shortcut) it adds it to the end of the file, which is obviously not what was intended, and very annoying.

Is the current version is beta? Because if it is - it's self-explanatory.

Thanks.

0

Any Update here on when the fix will be released?

0

Hello, no ETA yet, but the feature should be released in one of the upcoming releases.  Please follow https://youtrack.jetbrains.com/issue/PY-34820 to be updated. 

0

Ran into the same problem. There's no widget for it yet, but I discovered that if you delete the header from the cell (#%%, #%% md or whatever), it will automatically delete the cell. You can also type #%% md wherever you want the markdown cell and it will create it. 

Hope that helps!

0

If you delete the content of a cell completely, it deletes that cell!! Have fun!

0

Hi everyone. For your information, the new Jupyter support in DataSpell makes inserting/deleting cells much more intuitive: https://www.jetbrains.com/dataspell/

0

Please sign in to leave a comment.