Skip to main content
100%

Remove Jupyter Notebook's Output

✓ Published0🌍 Public
VVioletVivirand
Last edited Nov 2, 2018
Created on Nov 2, 2018

This example demonstrates how to strip output cells from Jupyter notebooks using two command-line approaches. It shows the `jupyter nbconvert` command with the `--ClearOutputPreprocessor.enabled=True` flag and the shorthand `--clear-output` option, both producing a new notebook file via the `--output` parameter. The first method explicitly invokes the preprocessor, while the second uses the built-in clear-output convenience flag. Both commands target a Python notebook (boston.ipynb) and save the cleaned result as output.ipynb, referencing a Stack Overflow solution for the syntax. The script is a simple Bash shell file.

AI-generated description

Similar vizzes