Live data from Hacker News

Nbterm: Jupyter Notebooks in the Terminal

blog.jupyter.org

31–40 of 76 posts

Re: Nbterm: Jupyter Notebooks in the Terminal

#31
post #5

VS Code has been making progress to support Jupyter notebooks ( https://code.visualstudio.com/docs/python/jupyter-support ), but it's not quite there yet. Code completion works, but other features such as user snippets are missing, and it can be quite laggy. Apparently that's because the VS Code team has to reimplement a lot of stuff for Jupyter specifically (compared to adding support for Rust or Go with a language…

VSCode Insiders has huge improvements in this area. I switched to Insiders specifically for this and it’s great. You get linting, auto-formatting, vim-mode keyboard input, and even git diff for .ipynb. I don’t run Jupyter’s browser UI at all now.

For those that don't know, VSCode Insiders seems to be some beta/alpha channel of releases with features that are under-development. So I guess that means it will end up in VSCode stable in a little bit.

Re: Nbterm: Jupyter Notebooks in the Terminal

#32

Earlier quoted context omitted.

The shameless plug is well justified. uniplot is seriously impressive!

Thanks! Do let me know if you are still looking for any particular feature

Do you know if Uniplot is able to handle pediatric growth charts ? (https://www.cdc.gov/growthcharts/index.htm) or generally, being able to plot on a background that is always used, instead of the (default) of a blank page ? such as : https://www.cdc.gov/growthcharts/data/who/GrChrt_Boys_24HdCi...

Thanks !

PS: Is the general case of a background image handled by Uniplot, and does Uniplot allow for the idea of taking a PDF, putting the plot data into it, and then creating a new PDF file ?

Re: Nbterm: Jupyter Notebooks in the Terminal

#34

Earlier quoted context omitted.

I'm curious, what version of Hy are you targeting in your book?

The latest public version (pip install Hy). I don’t generally install from the GitHub repo. I know that Hy is no big deal, just a Lisp skin on top of Python, but I really enjoy using it. Hy is an example of “done” software: it was written years ago, and just does what it is meant to. I have noticed comments on Reddit about Hy not being actively maintained, but as I said, it is “done.”

In my field, I hear the word "legacy" used for applications that just work, and don't require a lot of tweaks because they handle the use cases that come up commonly.

Re: Nbterm: Jupyter Notebooks in the Terminal

#35
post #8

The web interface was the main reason I never really used the tool for more than a few test runs. Writing code in the browser combines bad usability and performance with a lack of useful dev tools. Which brings me to the question whether I can edit the code in a text editor as well or I have to write it as shown in the animation. It would be really helpful if there was a shortcut to open the current (code) section in…

One way I've been exploring, is to use nbconvert [1] to convert notebooks to python scripts and back. [1] https://nbconvert.readthedocs.io/en/latest/index.html

Have you found any Jupyter notebooks that don't convert easily ?

Re: Nbterm: Jupyter Notebooks in the Terminal

#36
post #32

Earlier quoted context omitted.

Thanks! Do let me know if you are still looking for any particular feature

Do you know if Uniplot is able to handle pediatric growth charts ? ( https://www.cdc.gov/growthcharts/index.htm ) or generally, being able to plot on a background that is always used, instead of the (default) of a blank page ? such as : https://www.cdc.gov/growthcharts/data/who/GrChrt_Boys_24HdCi... Thanks ! PS: Is the general case of a background image handled by Uniplot, and does Uniplot allow for the idea of takin…

Thanks for the question! So the labels only depend on the limits of the plotting window, which you can supply as a keyword option. In that sense, and together with using the same gridlines options, you could have the same background in some sense.

What uniplot cannot do today is to have multiple vertical axis (like weight and head circumference in your example).

Hope this helps!

P.S.: Regarding your PDF question, for that in fact I think that some plotting library to graphics (rather than the terminal) might be better

Re: Nbterm: Jupyter Notebooks in the Terminal

#37
post #13

My team is doing a lot of cli-based hacking on notebooks. They’re an interesting developing format. I would love early HN feedback on Notebook Ninja, which is (pre-)alpha here: https://notebook.ninja

What features does Noteback Ninja have that aren't present in the nbterm system ?

Re: Nbterm: Jupyter Notebooks in the Terminal

#38
post #37
post #13

My team is doing a lot of cli-based hacking on notebooks. They’re an interesting developing format. I would love early HN feedback on Notebook Ninja, which is (pre-)alpha here: https://notebook.ninja

What features does Noteback Ninja have that aren't present in the nbterm system ?

Great question. Right now Ninja is web-only for the public. Internally it's a CLI (releasing soon).

nbterm is "notebooks in the terminal", Ninja is "materialized notebook executions". So, for example, whereas nbterm will display cell outputs, ninja will materialize them to disk and make them available via (eg) HTTP.

Whereas nbterm is a CLI-based notebook development environment, Ninja is a notebook production execution environment.

Ninja continues the thought from "how do I build notebooks better" to "how do I get into production".

Re: Nbterm: Jupyter Notebooks in the Terminal

#39
I found that this is almost completely non-working. Ctrl+q doesn't quit, cells don't run. Does it work for others?

It also unfortunately uses shortcuts that are native on Mac (ctrl+up and down do "mission control" things).

Re: Nbterm: Jupyter Notebooks in the Terminal

#40

I write my code in Python or Hy files and then call functions from the notebook. Makes the editing feedback loop much easier.

Ayyy, first person I see using Hy in the wild. Have been interested for long time to use it as a stepping stone into lisp. But now that I know about Julia, that is a much more likely candidate (or a lispy dialect thereof). The semantics and metaprogramming abilities mirror lisp much more closely.

How have Hy been treating you?

Post reply on HN