jupyter_web icon indicating copy to clipboard operation
jupyter_web copied to clipboard

Slight modification of main, styles, and script to automate notebook to HTML

Open rlphillips opened this issue 5 years ago • 1 comments

Hello!

I've taken this project and slightly modified the main.html in order to parametrize the name of the html used as template. render.py now takes two parameters: name of the template to use, and name of the output file.

There's a bash script to run with the jupyter notebook you might be using, that deals with the nbconvert and calling render.py. I've tested with a few sample files, and I'm uploading one as a sample.

I've also added a bit of the styles for tables, that seemed to be missing.

rlphillips avatar Jul 02 '20 21:07 rlphillips

Hello! Alright, thanks for your feedback!

Since I'm not so experienced with Python and Jinja2 yet, I added bash to the mix, to get what I was working with reliably. But I understand it's not really in line with the philosophy of the repo.

It would probably be tidier to close this PR then, and if I get around to implementing this on Python I'll submit another one. I'll keep you posted, since I plan on regularly converting notebooks to Jekyll blog posts, based on this tool you introduce. I'll still comment and keep in mind your review requests for a future Python implementation.

As for a Docker solution with every step of the process, I'll start going in that direction, but it probably won't be completely fleshed out until I use it several times and run into some issues in order to make the solution more general.

We'll be in touch! Take care.

rlphillips avatar Jul 05 '20 18:07 rlphillips