Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The process to remove the output from all cells in Jupyter Notebook using Linux terminal is as follows:

  1. Open the Linux terminal and navigate to the directory where the Jupyter Notebook file is located.
  2. Type the command jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace <filename> where <filename> is the name of the Jupyter Notebook file.
  3. Press Enter to execute the command.
  4. The output from all cells in the Jupyter Notebook will be removed and the changes will be saved in the same file.

Note: Make sure that Jupyter Notebook is installed in the system before executing this command.