From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: interesting dilemma with ob-ipython Date: Thu, 09 Jun 2016 17:33:44 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB7aD-0004d8-AQ for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:33:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB7a7-0001L3-6r for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:33:44 -0400 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:35275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB7a7-0001Ky-2c for emacs-orgmode@gnu.org; Thu, 09 Jun 2016 17:33:39 -0400 Received: by mail-qk0-x232.google.com with SMTP id c73so2596638qkg.2 for ; Thu, 09 Jun 2016 14:33:38 -0700 (PDT) Received: from Johns-MacBook-Air.local (c-67-171-67-30.hsd1.pa.comcast.net. [67.171.67.30]) by smtp.gmail.com with ESMTPSA id v12sm2270802qtc.3.2016.06.09.14.33.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jun 2016 14:33:35 -0700 (PDT) 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: "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