Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Emacs org mode integration with IPython (github.com/gregsexton)
92 points by gregsexton on June 8, 2015 | hide | past | favorite | 27 comments



enupten, you appear to be hellbanned (i.e., your comments are auto-killed so that they won't be visible to people other than you unless they have the "showdead" option on).

This appears to have happened about 2 days ago, I would guess because someone regarded your comments about India and/or "Hinduphobia" as inflammatory or over-political. (Which is not the same as being incorrect.)

It is possible that you may be able to get reinstated by contacting the HN admins and (if appropriate) either defending your comments or promising to change.

[EDITED to add: enupten's comment here was perfectly innocuous: s/he was asking for comparisons with TeXmacs which has kinda-IPython-like facilities for embedding an interpreter in a document. I haven't looked hard at either, but my feeling is that this and IPython-in-org-mode are solving rather different problems: nice typography in one, nice interaction in the other.]


Can I please beg and beseech you to please use git version tagging (semver.org is a good place to start) and MELBA stable for your package releases?


That is neat! Thank you so much for this.

Learning to embrace org was a long and arid journey (it can do so much you quickly get lost in the process). Babel was the first extension I really enjoyed to use from day 1. It is what I expected from a literate programming tool.

I've never much used IPython but I heard a lot of praise about it. I guess it's the perfect timing to jump in.

Are you planning on adding to the languages' page? [1]

[1] : http://orgmode.org/worg/org-contrib/babel/languages.html


Can you recommend any specific resources that helped you get a handle on org?


Worg [1] is IMHO clearly the best place to start (and finish!). There is a lot of stuff there, and I don't think I'm even 10% done. (I still haven't looked at the calendar, tried the to-do list and wasn't convinced, etc.)

At first, comparing it to Markdown (markup-wise) was very helpful. I keep this page ( http://orgmode.org/manual/Markup.html ) handy and write my blog posts in Org. (This is why I found babel to be invaluable : I don't have to keep my code separate from my post, which is one hassle less for quick demonstrations).

Right now, my strategy is a little bit like this : the moment I think something would require some writing, I quickly check what org-mode has to offer. The learning might be slower, but I don't get bored this way.

[1] : http://orgmode.org/worg/



This is really cool. As far as I can tell a similar workflow was presented at pycon 2013:

http://pyvideo.org/video/2000/emacs-org-mode-python-in-repro...


As I see for Atom.io there is something similar: https://atom.io/packages/hydrogen


Submission:

Show HN: Hydrogen Brings Light Table to Atom

190 points willwhitney 20 days ago 70 comments

https://atom.io/packages/hydrogen


Can you use different kernels with this?


Stuff like this always amazes me and makes me glad i switched to Emacs not too recently ago. I begin to grasp why Emacs is its own OS and that's even a nice thing! (fwiw, nowadays Emacs is my mail client and my go to editor/IDE)


Welcome to the fold. Emacs is basically a lisp image with a built-in text editor. You can even write web servers in it (and people have).

The utility of such a system beyond just editing one or text files at a time is enormous.

Enjoy your stay.


IPython Notebook can export a report to PDF with syntax highlighted code - can this?


Probably. You can mark code blocks in .org files with the Emacs "mode" for them, and they will be highlighted appropriately (and you can use a shortcut to open a new buffer in said mode just to edit that block). I imagine that if PDF export exists (I assume it does), this would map to it.


Yes, with the "gotcha" that you must set org-src-fontify-natively (a customizable setting) to non-nil.


Is it possible to set up something like this for Vim? I am devoting this summer to learning one editor in depth, and I was thinking of going with Vim because it is on servers everywhere. But I've also chosen to deep dive into python and I love the ipython notebooks, so this could be handy


Stop with this "vim is on server everywhere", only vi is and it's pretty much useless compare to vim outside of text editing. Plus with emacs you edit the server directly from your machine via ssh with tramp, you don't ssh then open emacs on the server


Although i recently had a huge "woah" effect when i SSH'd into a server and wanted to edit a file using emacs. Turns out emacs recognized my X11 forward and i had a fully functional emacs GUI in front of me! I would never had expected this and also don't know any other editor that does this. :)


In a situation like that, `gvim` would have opened graphically as well. Although, different command to be sure.


Ok.. i ran vim thousands of times but never gvim.


Or even vim -g IIRC.


Sorry, didn't mean to offend you, and I did mean to write vi.

I was only looking at the best use of my time to deep learn an editor. I was considering sublimetext as well as emacs. I just thought Vim would be good, as long as I started with vi first and built on up to Vim. I say this after reading an interesting answer on Stack Exchange where some be goes off on the philosophy of vi. Was an interesting read and got me thinking.

Also I wanted the ability to use a simple ssh utility from my android or iOs tablet. Do you know of any good mobile implementations of emacs that would work with your idea of using tramp?


going with Vim because it is on servers everywhere

No it really isn't. At best you can probably rely on vi being on most *nix servers, but vi is not vim. So if that is your reasoning make sure you learn vi and not (only) vim.

Also if you are in a position where you might be dropped into some older and more obscure environments, make sure you have at least a working knowledge of ed.


I planned on learning Vi first, then moving on to the 'improved' part.

Thanks for the tip about ed, I can do the basics with it.


Does this work with evil mode?


Yes. I use evil mode with it.


Neat! Can people in the know share their experience with TeXmacs which is supposed to do very similar stuff ?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: