'In PyCharm how do I remove the outputs of my Jupyter Notebook when running from the IDE?

If I run a piece of python code in from a cell in my IPython NoteBook, the output is displayed in my IDE below the selected cell. I want to remove this output (and/or any output from other cells) from the view. When I access the notebook through the Jupyter URL, I can reset the kernel and clear all results.

How can I reset/clear the output in my IDE?



Solution 1:[1]

I believe this feature is still missing in PyCharm, as confirmed by one of the JetBrains employees here.

So I guess you have to do it directly by accessing the Jupyter URL (e.g., in the browser) or open the file as JSON and manually delete the output.

Solution 2:[2]

For PyCharm 2021.3 the bulb icon (previous answer) is no longer there. Just tap shift twice and look for "Clear Outputs".

Solution 3:[3]

This feature is already in pycharm. In the top of the window there is a lamp which contains the main features of jupyter notbook including clean the outputs.

Solution 4:[4]

The feature is planned for 2019.2 - you can vote for it here: https://youtrack.jetbrains.com/issue/PY-34789

Solution 5:[5]

The new Data Science focused IDE from Pycharm called DataSpell has the feature. At the right end of your output cell, there are 3 dots. Simply click on them and clear the output.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 swathis
Solution 2 Agustín
Solution 3 Orlando G
Solution 4 Mr_and_Mrs_D
Solution 5 Brian Koech