Re: [O] interesting dilemma with ob-ipython

2016-06-28 Thread Ista Zahn
On Fri, Jun 10, 2016 at 10:19 AM, John Kitchin wrote: > Thanks for this tip. It was a great start! I turned it into this: > > #+BEGIN_SRC emacs-lisp > ;; make src blocks open in the right mode > (add-to-list 'org-src-lang-modes '("jupyter-hy" . hy)) > (add-to-list 'org-latex-minted-langs '(jupyter

Re: [O] interesting dilemma with ob-ipython

2016-06-10 Thread John Kitchin
Thanks for this tip. It was a great start! I turned it into this: #+BEGIN_SRC emacs-lisp ;; make src blocks open in the right mode (add-to-list 'org-src-lang-modes '("jupyter-hy" . hy)) (add-to-list 'org-latex-minted-langs '(jupyter-hy "hylang")) ;; set default headers for convenience (setq org-

Re: [O] interesting dilemma with ob-ipython

2016-06-09 Thread Anthony Cowley
John Kitchin writes: > 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") > (imp

Re: [O] interesting dilemma with ob-ipython

2016-06-09 Thread Ken Mankoff
Hi John, On 2016-06-09 at 23:33, John Kitchin wrote: > I was looking into ob-ipython as a replacement for regular > org-babel-python [...] > > 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. >

[O] interesting dilemma with ob-ipython

2016-06-09 Thread John Kitchin
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_