Skip to content

Instantly share code, notes, and snippets.

@davipatti
Created September 26, 2022 19:23
Show Gist options
  • Save davipatti/28e62f965d5101c9273e2a43036bb9ff to your computer and use it in GitHub Desktop.
Save davipatti/28e62f965d5101c9273e2a43036bb9ff to your computer and use it in GitHub Desktop.
# Fish function for converting jupyter notebooks to html with and without code cells
function jnc
for file in $argv
set root (basename "$file" .ipynb)
jupyter nbconvert --to html "$file"
jupyter nbconvert --to html --TemplateExporter.exclude_input=True "$file" --output "$root"-nocode.html
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment