voila-dashboards / voila

Voilà turns Jupyter notebooks into standalone web applications
https://voila.readthedocs.io
Other
5.41k stars 503 forks source link

Download rendered HTML #1391

Closed svaidyans closed 1 year ago

svaidyans commented 1 year ago

Problem

Foremost thanks for a wonderful tool!

I am trying to automate verification of outputs of Python test assignments. I would like to have a Download option as command line parameter to save the rendered html file locally.

Proposed Solution

Kindly see if it is possible to have this feature...for example, something like this:

voila <notebook> --strip_sources=False --download_file="<filename>.html"

Additional context

Thanks in advance for considering this.

martinRenou commented 1 year ago

Would using nbconvert directly be an option for you? IIRC it's something like jupyter nbconvert --execute --to html YourNotebook.ipynb

svaidyans commented 1 year ago

Wow! Excellent. Thank you - this works perfectly and suits my needs. Appreciate your quick response.