emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with ob-ipython
@ 2017-03-02  1:30 marvin doyley
  0 siblings, 0 replies; only message in thread
From: marvin doyley @ 2017-03-02  1:30 UTC (permalink / raw)
  To: emacs-orgmode

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.”

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 = np.linspace(0,np.pi,100)
y = 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)  
  (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)
)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-02  1:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02  1:30 Problems with ob-ipython marvin doyley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).