Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing the cells for a saved notebook #27

Open
psychemedia opened this issue Jan 15, 2017 · 0 comments
Open

Clearing the cells for a saved notebook #27

psychemedia opened this issue Jan 15, 2017 · 0 comments

Comments

@psychemedia
Copy link
Contributor

If you try to print the internet out into an output cell, the kernel may fall over and you may have problems trying to open the notebook.

Clear the cells in a saved notebook using the command:

jupyter nbconvert --to notebook --ClearOutputPreprocessor.enabled=True NOTEBOOK.ipynb

to generate a notebook with empty output cells: NOTEBOOK.nbformat.ipynb

or add the --inplace flag to save the notebook with cleaned output cells to the same filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant