News for hackers. Stuff that matters.
Re:Julia adoption keeps climbing by Jugurtha on Monday January 18, 2021 @12:23PM (#25824066)
>and the rest could be embedded inside comments. I don't see any problem with that

Do you mean embedding images and plots inside comments? If yes, please elaborate on how you see that happening in the real world.

>The fact that they are saving it as json by default seems more to be laziness by the developers than a well thought-out solution, that could be just a straightforward serializer.

So, how would that well thought-out solution in the form of a "straightforward serializer" work? I have a flat file, and I want to display images, plots that you can zoom into out of, figures, etc. as comments. How would that happen?

Re:Julia adoption keeps climbing by disgruntledphd2 on Monday January 18, 2021 @02:59PM (#25825894)
Well you could look at the source for org-mode, which does what Jupyter does but in Emacs, and using plain-text files.

https://github.com/bzg/org-mode

Re:Julia adoption keeps climbing by enriquto on Monday January 18, 2021 @12:34PM (#25824210)
> How would that happen?

At the very least, you could put the whole json stuff inside a comment. It's already plain text, isn't it?

Re:Julia adoption keeps climbing by lenkite on Wednesday January 20, 2021 @01:30AM (#25843170)
Python supports multi-line strings for this. No need for comments.
Re:Julia adoption keeps climbing by Jugurtha on Monday January 18, 2021 @12:46PM (#25824338)
>At the very least, you could put the whole json stuff inside a comment. It's already plain text, isn't it?

So instead of having the whole file as JSON, which is lazy and not well thought-out, we'll put all content in JSON, then put that JSON inside a comment in a plain text file. Do I read you correctly?

I feel we're making progress faster than these lazy Jupyter org bandits.

Re:Julia adoption keeps climbing by enriquto on Monday January 18, 2021 @01:04PM (#25824590)
> we'll put all content in JSON, then put that JSON inside a comment in a plain text file

Only the "output" content. The code inside the cells is verbatim, and the markdwon cells are regular text comments.

See, I'm not discussing you just because. I have a legitimate problem with ipynb: very often I want to run the code of a notebook from the command line, or import it from another python program. This is quite cumbersome with the ipynb, but it would be trivial if it was a simple program with comments.

Re:Julia adoption keeps climbing by Jugurtha on Friday January 22, 2021 @11:37AM (#25873163)
I believe people reading this are not detecting the sarcasm. I'm demonstrating that the Jupyter folks are not lazy engineers, and the "obvious" solutions people come up with are not that well thought-out when you start actually thinking about them.