3 ms·
So I can now use a decent text editor (emacs) to edit Jupyer notebooks? Great! I do wish it was possible to interleave languages like with org-mode, though. I'v
by cup-of-tea 9y ago
So I can now use a decent text editor (emacs) to edit Jupyer notebooks? Great! I do wish it was possible to interleave languages like with org-mode, though. I've yet to find a literate programming/notebook format I'm truly happy with.
Edit: oh.. I misread. It doesn't support using external editors. All I want is some way to edit those text boxes with another program. I can't do any serious work in a web browser. It's awful.
- leephillips 9y agoYou can evaluate different cells using different kernels, by using a cell magic command. So a notebook can have a mix of languages. Is this something like what you are after?
- cup-of-tea 9y agoIt sounds like that is essentially the same thing, yes. It still won't be as good as org-mode, though. With org, when you enter some Python code you press a key and you're editing that block with the best editor for Python (emacs) and when you edit bash code you're using the best editor for bash (emacs). With this, you have to use the same basic editor for everything.
- zokier 9y agoThere is the %edit magic, so I suppose wiring up emacs as editor for Jupyter is not that far-fetched http://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-edit http://ipython.readthedocs.io/en/stable/interactive/magics.h... Not suggesting that it does right now everything already, but rather that with bit of coding implementing similar thing for cells does seem feasible.
- rerx 9y agoHave you tried "EIN" in Emacs? https://github.com/millejoh/emacs-ipython-notebook https://github.com/millejoh/emacs-ipython-notebook I have used it quite productively for a while, but at the moment have mostly moved back to the browser for my notebooks. I can recommend to collect larger functions in a separate source file (for Emacs editing bliss) which you import to the notebook. [import helpers; reload(helpers)]
- cup-of-tea 9y agoI did try it, but it seemed to break "undo" unfortunately. That's something that will make me stop using a package immediately. I also tried ob-ipython for org-mode but found it not ready unfortunately. I think I will have to do what you suggest and just minimise the amount of code written in the notebook itself.
- optimali 9y agoThis is great for working with python - https://github.com/gregsexton/ob-ipython https://github.com/gregsexton/ob-ipython I haven't had as much luck using it for other languages, but I also haven't put in much effort into trying.
- mindB 9y agoThank you! I've been looking for this and didn't even realize. ob-julia is awful; really hope this can be made to work better. Also several obscure languages I've wanted to include snippets of in org that actually have Jupyter kernels...