Skip to content

Instantly share code, notes, and snippets.

@jj-github-jj
Created December 26, 2021 16:43
Show Gist options
  • Save jj-github-jj/62add87382e514d1464434b2397422ae to your computer and use it in GitHub Desktop.
Save jj-github-jj/62add87382e514d1464434b2397422ae to your computer and use it in GitHub Desktop.
EXPORT IPYNB OUTPUTS ONLY AS HTML
# output html without code only outputs. Use in ipynb file
#
#!pip install ipynbname
try :
import ipynbname #utility to get current notebook name and path
except:
!pip install ipynbname
import ipynbname #utility to get current notebook name and path
nb_fname_full= ipynbname.name()+'.ipynb'
!jupyter nbconvert "{nb_fname_full}" --no-input --to html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment