Re: [O] Problem with python source block

2018-05-26 Thread Doyley, Marvin M.
Thanks John, The problem is now fixed cheers, M > On May 26, 2018, at 10:22 AM, Doyley, Marvin M. > wrote: > > Hi there, > > The problem seem to be cause by scimax-org-babel-python.el. > When I disable this works fine, but doing this disables asynchronous > execution. > > John do you have

Re: [O] Problem with python source block

2018-05-26 Thread John Kitchin
The default for :results in scimax is output. You need to specify that you want the value for your block. This worked for me. #+BEGIN_SRC python :results value file import numpy as np import matplotlib.pyplot as plt import seaborn as sns x = np.random.rand(100) y= np.cos(x) plt.plot(x,y) plt.save

Re: [O] Problem with python source block

2018-05-26 Thread Doyley, Marvin M.
Hi there, The problem seem to be cause by scimax-org-babel-python.el. When I disable this works fine, but doing this disables asynchronous execution. John do you have any suggestions what is going on ? Cheers, M On May 26, 2018, at 9:16 AM, Doyley, Marvin M. mailto:m.doy...@rochester.edu>> wro

Re: [O] Problem with python source block

2018-05-26 Thread Doyley, Marvin M.
Hi Thibault, thanks for the info. I will dig around my config cheers, M > Hi, > For what it's worth, I cannot reproduce it on Org mode version 9.1.>13 >(release_9.1.13-763-g2621db) with -Q; the file is properly produced. > >I get the same error if I add the `session' header argument, maybe i>t

Re: [O] Problem with python source block

2018-05-26 Thread Van L
> Doyley, Marvin M. writes: > > I get an error I get a reproduction of your error outside of Emacs and Org Mode. Adapting an example from the list’s archive, the following works. #+BEGIN_SRC elisp :results none (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) #+E

Re: [O] Problem with python source block

2018-05-25 Thread Thibault Marin
Hi, For what it's worth, I cannot reproduce it on Org mode version 9.1.13 (release_9.1.13-763-g2621db) with -Q; the file is properly produced. I get the same error if I add the `session' header argument, maybe it is set elsewhere? Hope it helps. thibault Doyley, Marvin M. writes: > Hi there,

[O] Problem with python source block

2018-05-25 Thread Doyley, Marvin M.
Hi there, When I run the following code I get an error, does anybody know how to fix this I am using the latest version of org-mode. Thanks, M #+BEGIN_SRC python :results file import numpy as np import matplotlib.pyplot as plt import seaborn as sns x = np.random.rand(100) y= np.cos(x) plt.plot