How to clear the output in Jupyter?
In Jupyter, you can use the %%bash magic command to clear the output of a cell. The specific steps are as follows:
- Locate the code cell in Jupyter Notebook that contains the results to be cleared.
- Run the following command in bash.
- transparent
- Running the code cell will clear the output.
There is an example below:
%%bash
clear
After running this code cell, all previous run results will be cleared.