all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* interesting dilemma with ob-ipython
@ 2016-06-09 21:33 John Kitchin
  2016-06-09 21:42 ` Ken Mankoff
  2016-06-09 21:47 ` Anthony Cowley
  0 siblings, 2 replies; 5+ messages in thread
From: John Kitchin @ 2016-06-09 21:33 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

I was looking into ob-ipython as a replacement for regular
org-babel-python because it seems to be better at sessions. Also, you
can use other kernels with it!

For example:

#+BEGIN_SRC ipython :session hy :results output :kernel hy
(print "hello world")
(import time)
(print (time.asctime))
#+END_SRC

#+RESULTS:
: hello world
: Thu Jun  9 17:26:56 2016

Here is the dilemma:
If I special edit this, it is in python-mode, not hy-mode. And similarly
on export, it is highlighted as ipython, not hy-lang.

Any thoughts on how to address these?


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-29  2:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09 21:33 interesting dilemma with ob-ipython John Kitchin
2016-06-09 21:42 ` Ken Mankoff
2016-06-09 21:47 ` Anthony Cowley
2016-06-10 14:19   ` John Kitchin
2016-06-29  2:25     ` Ista Zahn

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.