Earlier quoted context omitted.
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.
Jupytext: Jupyter notebooks as Python scripts
31–40 of 42 posts
Re: Jupytext: Jupyter notebooks as Python scripts
#32Earlier quoted context omitted.
I'm sure notebooks are used a lot for interactive exploration, but I would not use them for reproducible research, so long as they lack things like dependency tracking: https://twitter.com/joelgrus/status/1033035196428378113
The bar in academia (over-generalizing here) was so low for so long that anything around including your code with your publication still gets placed under the historical title of "reproducibility" - that's probably where the confusion here is arising. I agree with your sentiment, but grandparent probably just meant "a lot of people release their code as notebooks".
Re: Jupytext: Jupyter notebooks as Python scripts
#33Re: Jupytext: Jupyter notebooks as Python scripts
#34The Python script can be opened with PyCharm This is going to be a bit pedantic, but for anyone that doesn't realize. Pycharm can already open ipynb files, and it will connect to a running notebook. I don't do it very often, usually just to quickly find my way around some library code. This project looks great though. I will likely use it, as I tend to use Jupyter to work out code before copying it over to my main pr…
Re: Jupytext: Jupyter notebooks as Python scripts
#35You can now develop in your favorite editor, and changes are automatically reloaded.
More detail here: https://blog.godatadriven.com/write-less-terrible-notebook-c...
Re: Jupytext: Jupyter notebooks as Python scripts
#36The Python script can be opened with PyCharm This is going to be a bit pedantic, but for anyone that doesn't realize. Pycharm can already open ipynb files, and it will connect to a running notebook. I don't do it very often, usually just to quickly find my way around some library code. This project looks great though. I will likely use it, as I tend to use Jupyter to work out code before copying it over to my main pr…
In my personal experience, PyCharm really mangles Jupyter Notebooks. Has it gotten to better recently?
Re: Jupytext: Jupyter notebooks as Python scripts
#37Earlier quoted context omitted.
I've never thought this criticism was that relevant. Notebooks have been incredibly successful, and if it's possible to call your code in the wrong order and create a mess, it's probably a problem with your code not your coding environment. The more functional your code, the less of a problem jupyter notebooks are. They encourage better code not worse imo.
The "managed state" is important, though. For example I deal with cases where I'm doing some big expensive operations upfront (eg, processing a bunch of data coming in over a network share— ROS bag files, which are also bzipped, adding more upfront processing cost), and I'm interesting in tweaking the plots and analysis coming out the other end without having to re-run the processing each time. Even as a relatively e…
Re: Jupytext: Jupyter notebooks as Python scripts
#38Re: Jupytext: Jupyter notebooks as Python scripts
#39Earlier quoted context omitted.
1 thing. Code review. Even thou notebooks are not meant for production code, it's good to check them into repository to document what you did (let's ignore out of order computation and other horrors), and get feedback on your code / experiment. Right now, ipython notebook is stored as json, where code is list of json strings (so that you have it line by line). Additionally, the "WYSIWYG Interface" is horrible in comp…
I think you misunderstood me. My question was not why you would use an external editor (and get all the benefits you provided), but rather, why work back from jupyter to achieve this rather than working forward from simple markdown and allow code blocks to be embedded and run from the editor. But maybe I am missing some other features than the interface that the ipython kernel provides? I haven't used it much myself,…
Re: Jupytext: Jupyter notebooks as Python scripts
#40Earlier quoted context omitted.
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.