vericast / nbconflux

nbconflux converts Jupyter Notebooks to Atlassian Confluence pages
BSD 3-Clause "New" or "Revised" License
119 stars 33 forks source link

Remove Code Cells with CLI Argument #42

Open jinlow opened 3 years ago

jinlow commented 3 years ago

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