Skip to content

Instantly share code, notes, and snippets.

@etheleon
Created September 18, 2020 03:25
Show Gist options
  • Save etheleon/f085301c4fe919f131cfa134c2a5ffe9 to your computer and use it in GitHub Desktop.
Save etheleon/f085301c4fe919f131cfa134c2a5ffe9 to your computer and use it in GitHub Desktop.

Use the nbconvert / jupyter-nbconvert CLI to converting IPYNB to HTML

$ NOTEBOOK=file_name.ipynb
$ jupyter-nbconvert --to html $NOTEBOOK

You can add tags to hide cells, eg. code or outputs which you do not want in shown in the HTML

$ jupyter-nbconvert \
  --TagRemovePreprocessor.remove_cell_tags={\"hideall\"} \
  --TagRemovePreprocessor.remove_input_tags={\"hide\"} \
  --to html $NOTEBOOK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment