From: Brad Knotwell <bknotwell@yahoo.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: python source block weirdness
Date: Sat, 30 Mar 2019 18:39:50 +0000 (UTC) [thread overview]
Message-ID: <1417096456.12477648.1553971190377@mail.yahoo.com> (raw)
In-Reply-To: 1417096456.12477648.1553971190377.ref@mail.yahoo.com
[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]
Good day all--
I've been reading on the mailing list and web about this but it's entirely unclear to me what I need to do to make this work. I have a minimal example below to show what I'm fighting.
The raw/generated documents below show the problem clearly as the second block doesn't run correctly. Looking in the session, it receives an "unexpected indent" error which is unreasonable as I can paste that code into Python's REPL and get an expected result.
Looking around a bit, people were seeing this 4-5 years ago but I haven't been able to find anything since. Relevant version info: 9.2 orgmode, High Sierra OSX, and 2.7.10 Python.
Thx.
--Brad
#+NAME: works#+begin_src python :session broken :exports boths = 3t = 4'result = %d' % (s + t)#+end_src
Working result below:#+RESULTS: works
#+NAME: surprise#+begin_src python :session broken :exports bothtry: 'hi'except: 'there'#+end_src
Surprising result (AKA nothing) below:#+RESULTS: surprise
leads to the following output:
,----| s = 3| t = 4| 'result = %d' % (s + t)`----
Working result below:,----| result = 7`----
,----| try:| 'hi'| except:| 'there'`----
Surprising result (AKA nothing) below:
[-- Attachment #2: Type: text/html, Size: 2147 bytes --]
parent reply other threads:[~2019-03-30 18:42 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1417096456.12477648.1553971190377.ref@mail.yahoo.com>]
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=1417096456.12477648.1553971190377@mail.yahoo.com \
--to=bknotwell@yahoo.com \
--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.