From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: session with python-mode.el complains of void py-toggle-shells Date: Wed, 23 Jan 2013 02:47:31 +0000 Message-ID: <87ham8y5rw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxqMQ-0005dC-3k for Emacs-orgmode@gnu.org; Tue, 22 Jan 2013 21:46:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxqMO-00040v-Ta for Emacs-orgmode@gnu.org; Tue, 22 Jan 2013 21:46:46 -0500 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:39240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxqMO-00040n-NG for Emacs-orgmode@gnu.org; Tue, 22 Jan 2013 21:46:44 -0500 Received: by mail-we0-f182.google.com with SMTP id u54so2319870wey.27 for ; Tue, 22 Jan 2013 18:46:43 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode Hi, I think it should be possible to execute a python block in a session using python-mode.el but get this message: "Symbol's function definition is void: py-toggle-shells" Using the latest git head and opening this file with: $ emacs -Q thisfile.org then executing these src blocks in order, shows the problem: #+BEGIN_SRC emacs-lisp (require 'org) (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) #+END_SRC #+RESULTS: | (python . t) | * A heading This works okay: #+begin_src python :results output :session a import sys #+end_src #+RESULTS: Try with python3: #+begin_src elisp (setq org-babel-python-command "python3" py-python-command "python3" ) #+end_src #+RESULTS: : python3 works also: #+begin_src python :results output :session a import sys #+end_src #+RESULTS: Try using python-mode.el: #+begin_src elisp (setq org-babel-python-mode 'python-mode) (load-file "/usr/share/emacs/site-lisp/python-mode.el") #+end_src #+RESULTS: : t #+begin_src python :results output :session a import sys #+end_src Gives this *Message*: org-babel-python-initiate-session-by-key: Symbol's function definition is void: py-toggle-shells Do I need to configure something else? Thanks, Myles