Hacker News new | ask | show | jobs
by enriquto 2846 days ago
This is fantastic!

Now, they just need to adapt jupyter itself so that it reads the python files directly, dispensing with the need of the silly ipynb!

1 comments

I think that’s called IPython. But I agree with your sentiment.
I was not being ironic. Notebooks are lovely as an output format for showing your research and allowing others to fiddle with your code. However, for people who do not want to edit inside a web browser window, jupytext is a godsend!
At that point you should put most of your work in a separate file, and just import the stuff you need for your demo.
I do not want to hide anything, my only reason to use notebooks is to put all the computations inside them.
In such a use case, the whole point is showing your work in a 'literate programming' manner i.e. having the appropriate code that's being run be right there between the descriptive text, instead of just running do_something() that you imported from somewhere.