TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Nbterm: Jupyter Notebooks in the Terminal

148 pointsby 3l3ktr4about 4 years ago

14 comments

olavolavabout 4 years ago
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&#x27;t do[0] due to lack of resolution<p>A perfect use case for unicode plotting [1] (shameless plug)<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;domitry&#x2F;matascii" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;domitry&#x2F;matascii</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;olavolav&#x2F;uniplot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;olavolav&#x2F;uniplot</a>
评论 #26958237 未加载
评论 #26958667 未加载
评论 #26954973 未加载
评论 #26965452 未加载
评论 #26962174 未加载
kenwardabout 4 years ago
Slightly tangent, but has anyone figured out a good solution for version controlling jupyter notebooks?<p>The closest thing that we&#x27;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.<p>[0] <a href="https:&#x2F;&#x2F;jupytext.readthedocs.io&#x2F;en&#x2F;latest&#x2F;formats.html?highlight=cell%20syntax#the-percent-format" rel="nofollow">https:&#x2F;&#x2F;jupytext.readthedocs.io&#x2F;en&#x2F;latest&#x2F;formats.html?highl...</a><p>[1] <a href="https:&#x2F;&#x2F;code.visualstudio.com&#x2F;docs&#x2F;python&#x2F;jupyter-support-py" rel="nofollow">https:&#x2F;&#x2F;code.visualstudio.com&#x2F;docs&#x2F;python&#x2F;jupyter-support-py</a>
评论 #26959568 未加载
评论 #26958753 未加载
评论 #26958722 未加载
评论 #26960150 未加载
评论 #26959379 未加载
评论 #26959411 未加载
评论 #26967821 未加载
评论 #26963592 未加载
评论 #26958480 未加载
评论 #26958396 未加载
yewenjieabout 4 years ago
There is also Emacs Jupyter if you use Emacs, and all sorts of `org-babel` integrations if you use org-mode.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nnicandro&#x2F;emacs-jupyter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nnicandro&#x2F;emacs-jupyter</a>
lnyanabout 4 years ago
If you use vim, you can also try <a href="https:&#x2F;&#x2F;github.com&#x2F;hanschen&#x2F;vim-ipython-cell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hanschen&#x2F;vim-ipython-cell</a> . It works quite well<p>If you use emacs, ein is also a good choice: <a href="https:&#x2F;&#x2F;github.com&#x2F;millejoh&#x2F;emacs-ipython-notebook" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;millejoh&#x2F;emacs-ipython-notebook</a>
asimjalisabout 4 years ago
I write my code in Python or Hy files and then call functions from the notebook. Makes the editing feedback loop much easier.
评论 #26956861 未加载
评论 #26959402 未加载
fzimmermannabout 4 years ago
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.<p>Ok I&#x27;m stuck, let&#x27;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&#x27;s stuck.<p>Looks nice but I just don&#x27;t seem to get it to work using anaconda on macos..
评论 #26954914 未加载
alpaca128about 4 years ago
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.<p>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 $EDITOR, kind of like Git and other tools do it.
评论 #26954722 未加载
评论 #26963737 未加载
评论 #26954645 未加载
评论 #26954780 未加载
评论 #26954627 未加载
评论 #26958727 未加载
kbdabout 4 years ago
I found that this is almost completely non-working. Ctrl+q doesn&#x27;t quit, cells don&#x27;t run. Does it work for others?<p>It also unfortunately uses shortcuts that are native on Mac (ctrl+up and down do &quot;mission control&quot; things).
unixheroabout 4 years ago
Why would one need this when you already have ipython?
评论 #26954859 未加载
评论 #26958826 未加载
enriqutoabout 4 years ago
Alright. Now get rid of the stupid ipynb format and store the notebooks as God intended (runnable Python files with comments).
评论 #26955693 未加载
评论 #26955483 未加载
kache_about 4 years ago
We&#x27;ve come full circle
评论 #26955443 未加载
barefegabout 4 years ago
Would be interesting to spin this into a normal bash terminal where you can edit text in the “cell” like in GUI editor and then execute the cell at the end
reimbarabout 4 years ago
VS Code has been making progress to support Jupyter notebooks (<a href="https:&#x2F;&#x2F;code.visualstudio.com&#x2F;docs&#x2F;python&#x2F;jupyter-support" rel="nofollow">https:&#x2F;&#x2F;code.visualstudio.com&#x2F;docs&#x2F;python&#x2F;jupyter-support</a>), but it&#x27;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&#x27;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 server).
评论 #26954958 未加载
alflabout 4 years ago
My team is doing a lot of cli-based hacking on notebooks. They’re an interesting developing format.<p>I would love early HN feedback on Notebook Ninja, which is (pre-)alpha here: <a href="https:&#x2F;&#x2F;notebook.ninja" rel="nofollow">https:&#x2F;&#x2F;notebook.ninja</a>
评论 #26955904 未加载