From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Problem with python source block Date: Sat, 26 May 2018 05:06:30 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMRPZ-0001s4-50 for emacs-orgmode@gnu.org; Sat, 26 May 2018 01:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMRPW-00030W-0P for emacs-orgmode@gnu.org; Sat, 26 May 2018 01:06:37 -0400 Received: from mail-by2nam03on0113.outbound.protection.outlook.com ([104.47.42.113]:45086 helo=NAM03-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fMRPV-0002zo-LQ for emacs-orgmode@gnu.org; Sat, 26 May 2018 01:06:33 -0400 Content-Language: en-US Content-ID: 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, 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 =3D np.random.rand(100) y=3D 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 ]]=