From mboxrd@z Thu Jan 1 00:00:00 1970 From: marvin doyley Subject: Problems with ob-ipython Date: Wed, 1 Mar 2017 20:30:51 -0500 Message-ID: <1EC0DFBB-E88C-4B1B-934E-1D37AFAFCCE5@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjFa7-0000KR-3G for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 20:30:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjFa3-0004t0-V4 for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 20:30:59 -0500 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:36472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjFa3-0004sJ-Nj for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 20:30:55 -0500 Received: by mail-qk0-x22b.google.com with SMTP id n186so98240053qkb.3 for ; Wed, 01 Mar 2017 17:30:54 -0800 (PST) Received: from [10.0.1.5] (cpe-45-46-209-35.rochester.res.rr.com. [45.46.209.35]) by smtp.gmail.com with ESMTPSA id m12sm4356162qtm.45.2017.03.01.17.30.52 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Mar 2017 17:30:52 -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" To: emacs-orgmode@gnu.org Hi there, I am trying to use ob-ipyton but when I try to run any code block I get the following error = "Evaluation of this python code block is disabled.=E2=80=9D Any suggestions on how to fix this ? I am using emacs 26, python 5 cheers, M Here is an example code block that I try to run. Note that python code = blocks run ok, its just the ppython ones that fail #+BEGIN_SRC ipython :session :results output drawer %matplotlib inline x =3D np.linspace(0,np.pi,100) y =3D np.cos(x) plt.plot(x,y) #+END_SRC I have the following in my .emacs file ;; Org-babel (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (lisp . t) (fortran . t) (C . t) (latex . t) (ipython . t) (python . t) )) (use-package ob-ipython :ensure t :config (setq org-confirm-babel-evaluate nil) =20 (add-hook 'org-babel-after-execute-hook 'org-display-inline-images = 'append) ) (use-package python-mode :ensure t :config (setq python-shell-interpreter "/anaconda/bin/ipython" python-shell-interpreter-args "--simple-prompt -i" python-indent-offset 4) )=