From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Cowley Subject: Re: interesting dilemma with ob-ipython Date: Thu, 09 Jun 2016 17:47:31 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB7ng-0001V6-0v for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:47:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB7na-0005IX-VP for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:47:38 -0400 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]:35217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB7na-0005IR-RA for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:47:34 -0400 Received: by mail-yw0-x22b.google.com with SMTP id z186so31974666ywd.2 for ; Thu, 09 Jun 2016 14:47:34 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: John Kitchin Cc: "emacs-orgmode@gnu.org" 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") > (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? I've had success using something like this, (add-to-list 'org-src-lang-modes '("ipython" . haskell)) in a :noexport: setup section. Anthony