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.

Run code inline in Atom using Jupyter kernels

229 pointsby dkharratalmost 9 years ago

20 comments

pjmlpalmost 9 years ago
&gt; Hydrogen was inspired by Bret Victor&#x27;s ideas about the power of instantaneous feedback and the design of Light Table.<p>Good work.<p>Although Bret Victor deserves lots of appreciation for his work, most of his ideas are actually how Xerox PARC workstations and Lisp Machines used to enable developers to program more productively.<p>So if anything the best part of his work is making young generations aware of what the industry lost when those systems failed to gain wide market acceptance.
评论 #12101178 未加载
cheezalmost 9 years ago
This is really cool and I think over time, Atom is going to become really compelling once their org mode implementation or its moral equivalent gets some legs.<p>I&#x27;ve used the Jupyter emacs integration (<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>) but in the end, I stuck with org mode.<p>For an example of what you can do in org mode (in emacs), here is part of a &quot;dashboard&quot; I created for one of my products: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;QUFbIBk.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;QUFbIBk.png</a><p>And an example of how I design: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;MeRYn1L.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;MeRYn1L.png</a><p>You can essentially use org-babel to recreate an approximation to the notebook environment which si cool
评论 #12100141 未加载
cedalmost 9 years ago
I haven&#x27;t tried either, but atom-notebook (<a href="https:&#x2F;&#x2F;github.com&#x2F;jupyter&#x2F;atom-notebook" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jupyter&#x2F;atom-notebook</a>) looks more promising to me. I hope they can integrate it well.<p>With hydrogen, are there cells? What happens if I want to rerun everything? Will I get no output except the output of the last line?
评论 #12101376 未加载
gloglaalmost 9 years ago
Many times I wanted to switch from Sublime Text to Atom, but I always went back for some reason (slowness, not remembering open files upon restart, etc). Maybe this will make me swich for good.
评论 #12099963 未加载
评论 #12100628 未加载
machbioalmost 9 years ago
Jupyter released a cool computational environment(basically an IDE like Rstudio Web) - <a href="https:&#x2F;&#x2F;github.com&#x2F;jupyter&#x2F;jupyterlab" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jupyter&#x2F;jupyterlab</a><p>There is already discussion about Jupyter lab here on the front page - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12098180" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12098180</a>
olsgaardalmost 9 years ago
What Jupyter Notebook is missing is a good text&#x2F;code editor and what good text&#x2F;code editors are missing is Jupyter Notebook like write and execute.<p>This is the first example I&#x27;ve seen of the power that using Electron in Atom can give, and it makes me super exited!
评论 #12101829 未加载
评论 #12102263 未加载
leetroutalmost 9 years ago
If you&#x27;re spending a lot of time doing data science and if you might be missing R studio for Python I work for Yhat and we make a product called Rodeo <a href="http:&#x2F;&#x2F;rodeo.yhat.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rodeo.yhat.com&#x2F;</a>
评论 #12101106 未加载
mbmalmost 9 years ago
For any of those who may be doing Elixir development, <a href="https:&#x2F;&#x2F;github.com&#x2F;pprzetacznik&#x2F;IElixir" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pprzetacznik&#x2F;IElixir</a> works perfectly with this.
kabdibalmost 9 years ago
The MPW Shell (the Macintosh Programmer&#x27;s Workshop) had a feature like this; every editor window was also a shell command window. You could select some text and run it as a shell command.<p>I regularly included build steps as comments in the first few lines of C and Pascal sources. No makefile necessary.<p>You could also arrange for code to run on actions like &#x27;cd&#x27; (to set up environments, for instance; your editor window could become a context of readily selectable commands based on the directory you were in).<p>Oh, and 1987.
Wonnk13almost 9 years ago
Advantages of this over running a repl in an Emacs buffer and evaluating code that way? I&#x27;ve never tried Atom.
评论 #12101135 未加载
评论 #12100927 未加载
Chris2048almost 9 years ago
I could never get this to work in Ubuntu 14.1 :&#x2F;<p>There are issues with Jupyter in that distro too, But hydrogen had some nps js error regarding a missing lib or something. So many stacks in these things...
kdtgalmost 9 years ago
For vim people living in terminal, I suggest cellmode plugin for vim (<a href="https:&#x2F;&#x2F;github.com&#x2F;julienr&#x2F;vim-cellmode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;julienr&#x2F;vim-cellmode</a>). You can split tmux window into vim + ipython panes, and trigger the evaluation of selected vim lines by pressing Ctrl-C.
mungoidalmost 9 years ago
Suuure, now this gets posted after I JUST found out about it yesterday in a comment about the JupyterLab link.. Go ahead, rub it in more.. Seriously though, I never thought to look for something like this so I&#x27;m happy more people are finding out about it too. Even if there may be better alternatives, more people now know to look.
projectramoalmost 9 years ago
Is there any way you could have this running on the cloud (in Digital Ocean or AWS)?<p>Suppose you had Jupyter installed using the following process:<p><a href="https:&#x2F;&#x2F;www.dataquest.io&#x2F;blog&#x2F;digitalocean-docker-data-science&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.dataquest.io&#x2F;blog&#x2F;digitalocean-docker-data-scien...</a>
vanousalmost 9 years ago
I have been enjoying Python (or any other external command) execution on whole file or on selected text block in Vim and it has been great, even for some specialized mini applications and custom docbook&#x2F;markup formatting. The ability to have graphics is intriguing, will give atom a try.
baboalmost 9 years ago
Works fine after adding a minimal config {&quot;magicpython&quot;: &quot;Python 3&quot;} at the Kernel Mappings setting and setting PYTHONPATH at the command line when running atom. It&#x27;s kinda cool to manage your kernels from the editor!
mungoidalmost 9 years ago
So I know Sage is quite a bit more hefty than the standard Jupyter kernel, but I wonder if this could work with the Sage kernel? I quickly attempted it with no luck but assume with the right setup it could. Maybe?
nickjjalmost 9 years ago
This looks cool but how does this translate to being beneficial in real world web applications?<p>Often times the result of running some bit of code is to see the end result in a browser because the code resulted in sending a bunch of HTML or JSON as a response.<p>Also in the above case your code isn&#x27;t self contained to a block of code. Chances are you have a web server, along with a database and cache server. Most of my projects are also encapsulated in half a dozen Docker containers. How is this plugin going to know what to do with that?<p>Starting up an entire stack of programs to live preview a few lines of code would end up being slower than just saving the file and reloading the browser to see feedback.
评论 #12100718 未加载
Dawny33almost 9 years ago
Super awesome! The gif can do with a better Atom theme, though!<p>The dark one isn&#x27;t really ideal for a cell-by-cell Jupyter-like implementation
评论 #12100482 未加载
blahialmost 9 years ago
VS Code?
评论 #12100430 未加载