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

Remove Code Cells with CLI Argument #42

Open
jinlow opened this issue Mar 10, 2021 · 0 comments
Open

Remove Code Cells with CLI Argument #42

jinlow opened this issue Mar 10, 2021 · 0 comments

Comments

@jinlow
Copy link

jinlow commented Mar 10, 2021

Is there a way to remove code cells simply with a command line argument?
I know the README specifies how to do this with notebook tags.

Excludes input, output, or entire cells based on notebook cell tags noinput, nooutput, or nocell

But what if I didn't want to have to worry about adding tags to my notebook cells, and instead just wanted to do it from the command line. For example the way you can use the --no-input and --no-prompt flags in nbconvert currently.

> jupyter nbconvert your_notebook.ipynb --to="html" --no-input --no-prompt
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