Live data from Hacker News

Nbterm: Jupyter Notebooks in the Terminal

blog.jupyter.org

21–30 of 76 posts

Re: Nbterm: Jupyter Notebooks in the Terminal

#21

Ok, I failed in basic usage: Entering nbterm, I assumed some standard key bindings -- None seemed to work. Neither Ctrl-C, Ctrl-D, Ctrl-x ctrl-c, escape q, escape :q, ... seems to work. So off to google: Escape Ctrl-q should work. But does not. Ok I'm stuck, let's at least get 1+1 to work. So entering 1+1 and .. hitting Enter? Shift Enter? No. Ok, command mode, Ctrl E.. aaaaand it's stuck. Looks nice but I just don't…

The project's README might help. https://github.com/davidbrochart/nbterm

To be fair the poster you’re replying to seems to have run the correct commands indicated by the README, unless I’m missing the same thing they are.

Re: Nbterm: Jupyter Notebooks in the Terminal

#22

Ok, I failed in basic usage: Entering nbterm, I assumed some standard key bindings -- None seemed to work. Neither Ctrl-C, Ctrl-D, Ctrl-x ctrl-c, escape q, escape :q, ... seems to work. So off to google: Escape Ctrl-q should work. But does not. Ok I'm stuck, let's at least get 1+1 to work. So entering 1+1 and .. hitting Enter? Shift Enter? No. Ok, command mode, Ctrl E.. aaaaand it's stuck. Looks nice but I just don't…

The project's README might help. https://github.com/davidbrochart/nbterm

Thanks, just what I was looking for.

I used to use a matplotlib backend that worked with ITerm2 for coding in a remote server (standard technique, that I also cover in my Hy language book). Adding Nbterm would also be useful. Off topic, but it is sometimes just (much) better to do development on a remote server with much more compute and faster Internet connections.

Re: Nbterm: Jupyter Notebooks in the Terminal

#25

Very cool to see this – but will only be successful with great terminal plotting tools. The ones the author mentions like the matplotlib interface clearly won't do[0] due to lack of resolution A perfect use case for unicode plotting [1] (shameless plug) [0] https://github.com/domitry/matascii [1] https://github.com/olavolav/uniplot

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

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

Re: Nbterm: Jupyter Notebooks in the Terminal

#26

Ok, I failed in basic usage: Entering nbterm, I assumed some standard key bindings -- None seemed to work. Neither Ctrl-C, Ctrl-D, Ctrl-x ctrl-c, escape q, escape :q, ... seems to work. So off to google: Escape Ctrl-q should work. But does not. Ok I'm stuck, let's at least get 1+1 to work. So entering 1+1 and .. hitting Enter? Shift Enter? No. Ok, command mode, Ctrl E.. aaaaand it's stuck. Looks nice but I just don't…

The project's README might help. https://github.com/davidbrochart/nbterm

Yes, it would help if those key combinations would work (even though they are still at least unusual). The quit combination does not work and neither does evaluating a cell. Does anybody have luck actually getting it to work?

Edit: The issue is using a new environment without ipykernel installed (not a dependency of the conda package). With ipykernel, I can exit nbterm and even evaluate cells

Re: Nbterm: Jupyter Notebooks in the Terminal

#27

Earlier quoted context omitted.

The project's README might help. https://github.com/davidbrochart/nbterm

Thanks, just what I was looking for. I used to use a matplotlib backend that worked with ITerm2 for coding in a remote server (standard technique, that I also cover in my Hy language book). Adding Nbterm would also be useful. Off topic, but it is sometimes just (much) better to do development on a remote server with much more compute and faster Internet connections.

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

Re: Nbterm: Jupyter Notebooks in the Terminal

#28

Earlier quoted context omitted.

Thanks, just what I was looking for. I used to use a matplotlib backend that worked with ITerm2 for coding in a remote server (standard technique, that I also cover in my Hy language book). Adding Nbterm would also be useful. Off topic, but it is sometimes just (much) better to do development on a remote server with much more compute and faster Internet connections.

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.”

Re: Nbterm: Jupyter Notebooks in the Terminal

#30

Alright. Now get rid of the stupid ipynb format and store the notebooks as God intended (runnable Python files with comments).

Indeed, at which stage one might just use vim or emacs and skip this notebook thing.

But presentations would be less glossy and look like less work ...

Post reply on HN