From: "Doyley, Marvin M." <m.doyley@rochester.edu>
To: "Doyley, Marvin M." <m.doyley@rochester.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problem with python source block
Date: Sat, 26 May 2018 14:22:17 +0000 [thread overview]
Message-ID: <BF3245EA-E57D-4FA1-9B97-144D1D4EFCC4@ur.rochester.edu> (raw)
In-Reply-To: <F2B9964E-49BF-460D-A1BC-AB3369D064AA@ur.rochester.edu>
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
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. <m.doyley@rochester.edu<mailto:m.doyley@rochester.edu>> wrote:
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 is
>set elsewhere?
>Hope it helps.
>thibault
>Doyley, Marvin M. writes:
> 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(x,y)
> plt.savefig('test.png')
> return 'test.png'
> #+END_SRC
>
> #+RESULTS:
> [[file: File "Org SRC", line 8
> return 'test.png'
> ^
> SyntaxError: 'return' outside function
> ]]
I will do some digging around in my config file.
[-- Attachment #2: Type: text/html, Size: 3114 bytes --]
next prev parent reply other threads:[~2018-05-26 14:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-26 13:16 Problem with python source block Doyley, Marvin M.
2018-05-26 14:22 ` Doyley, Marvin M. [this message]
2018-05-26 15:18 ` John Kitchin
2018-05-26 16:39 ` Doyley, Marvin M.
-- strict thread matches above, loose matches on Subject: below --
2018-05-26 5:06 Doyley, Marvin M.
2018-05-26 5:29 ` Thibault Marin
2018-05-26 10:00 ` Van L
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BF3245EA-E57D-4FA1-9B97-144D1D4EFCC4@ur.rochester.edu \
--to=m.doyley@rochester.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.