Live data from Hacker News

Run code inline in Atom using Jupyter kernels

github.com

11–20 of 56 posts

Re: Run code inline in Atom using Jupyter kernels

#11
post #5

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. I've used the Jupyter emacs integration ( https://github.com/millejoh/emacs-ipython-notebook ) but in the end, I stuck with org mode. For an example of what you can do in org mode (in emacs), here is part of a "dashboard" I created for one of my products: http…

Org mode rocks! And with ob-ipython you basically get same functionality as the notebook...

https://github.com/gregsexton/ob-ipython

Re: Run code inline in Atom using Jupyter kernels

#13
This looks cool but how does this translate to being beneficial in real world web applications?

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.

Also in the above case your code isn'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?

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.

Re: Run code inline in Atom using Jupyter kernels

#14
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/markup formatting. The ability to have graphics is intriguing, will give atom a try.

Re: Run code inline in Atom using Jupyter kernels

#15
post #11
post #5

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. I've used the Jupyter emacs integration ( https://github.com/millejoh/emacs-ipython-notebook ) but in the end, I stuck with org mode. For an example of what you can do in org mode (in emacs), here is part of a "dashboard" I created for one of my products: http…

Org mode rocks! And with ob-ipython you basically get same functionality as the notebook... https://github.com/gregsexton/ob-ipython

Ah yes, that's the one I tried.

Re: Run code inline in Atom using Jupyter kernels

#19
The MPW Shell (the Macintosh Programmer'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.

I regularly included build steps as comments in the first few lines of C and Pascal sources. No makefile necessary.

You could also arrange for code to run on actions like 'cd' (to set up environments, for instance; your editor window could become a context of readily selectable commands based on the directory you were in).

Oh, and 1987.

Re: Run code inline in Atom using Jupyter kernels

#20
I haven't tried either, but atom-notebook (https://github.com/jupyter/atom-notebook) looks more promising to me. I hope they can integrate it well.

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?

Post reply on HN