Live data from Hacker News

Nbterm: Jupyter Notebooks in the Terminal

blog.jupyter.org

71–76 of 76 posts

Re: Nbterm: Jupyter Notebooks in the Terminal

#71
post #63
post #45

Earlier quoted context omitted.

You can configure so they don't save their output, then the ipynb diffs will be readable.

Makes me wonder if you could split an ipynb into an in and out file, then add /*.out to .gitignore.

I like this idea, but seems a little backwards. Normally you commit the _source_ and omit the _artifacts_ haha.

Re: Nbterm: Jupyter Notebooks in the Terminal

#72
post #43

Slightly tangent, but has anyone figured out a good solution for version controlling jupyter notebooks? The closest thing that we've found has been to use the notebook percent format in a simple .py file [0][1]. It plays with git much nicer than an .ipynb and it is still interactive enough for rapid prototyping. However, it would be nice to have some first-class support from Jupyter on this. [0] https://jupytext.read…

I just keep them as .ipynb files and then use git's filter and smudge features together with nbconvert's "clear notebook output" preprocessing, ensuring only clean notebooks get added/diff'd/committed.

Re: Nbterm: Jupyter Notebooks in the Terminal

#73
post #71
post #63

Earlier quoted context omitted.

Makes me wonder if you could split an ipynb into an in and out file, then add /*.out to .gitignore.

I like this idea, but seems a little backwards. Normally you commit the _source_ and omit the _artifacts_ haha.

That's what they are saying? Doesn't seem backwards to me.

Re: Nbterm: Jupyter Notebooks in the Terminal

#74
post #62
post #47

Earlier quoted context omitted.

In essence, yes. Ninja is based around the idea of reproducable science: a given execution of a notebook is immutable and accessible consistently. It writes out cell outputs depending on their mimetype (this is included in Jupyter Notebook metadata). It writes out all declared variables, per-cell, and makes them accessible in several formats (for pre-alpha, as JSON objects). It then exposes all of these via our web s…

I'm glad to see that you can link to the execution of a particular cell. Just to clarify, if the cell had the execution for the Age of a particular person, I don't know if the link to the cell is of the age of that person as of the particular day and time when it was executed, or if is stored in an unevaluated form, the execution would yield an age dependent upon the calculation and using "Now" as the value that is c…

It's evaluated eagerly. The notebook is executed and materialized at upload.

We're enabling re-triggering notebooks soon, which will allow things like scheduled and parameterized executions, and those will be eagerly evaluated as well.

Re: Nbterm: Jupyter Notebooks in the Terminal

#75
post #71

Earlier quoted context omitted.

I like this idea, but seems a little backwards. Normally you commit the _source_ and omit the _artifacts_ haha.

That's what they are saying? Doesn't seem backwards to me.

Oh, you may be right. I interpreted it as having a separate build step to generate the *.out files.

Re: Nbterm: Jupyter Notebooks in the Terminal

#76
post #63
post #45

Earlier quoted context omitted.

You can configure so they don't save their output, then the ipynb diffs will be readable.

Makes me wonder if you could split an ipynb into an in and out file, then add /*.out to .gitignore.

I believe I achieved the no-saving-output affect by adding a python snippet/plugin to Jupyter Lab. So you could program it to do whatever you want. That's what I love about Jupyter Lab, you can turn it into whatever kind of environment you want.
Post reply on HN