Hacker News new | past | comments | ask | show | jobs | submit login

I would like something like make for notebook cells inside a repl.

I would write the notebook in my text editor (not in a web form) execute "reload" in the repl, execute the cells that have been changed and render the webpage. The output should be a complete self contained html file with everything else embeded and of course not a single line of javascript.




If I understand you correctly, a combination of http://ipython.readthedocs.io/en/stable/interactive/magics.h... and http://nbconvert.readthedocs.io/en/latest/execute_api.html might get you there. Post if you build something like this!


BTW I'm pretty sure that this is exactly what Sweave is. You write in a text editor, and then invoke a batch process to generate an HTML file with mixed code and data.

Wikipedia says it does incremental rebuilding, which was news to me. I've never used it, but I know a lot of R users who use it.

https://en.wikipedia.org/wiki/Sweave




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: