emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <iemacs@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Something wrong with the src_python babel execution
Date: Mon, 15 Dec 2014 10:42:19 -0500	[thread overview]
Message-ID: <CALeUZPfrcb_b3qso0jyjDEKF02nnKi0VjpriUL0px7XvtXLOwg@mail.gmail.com> (raw)

Hi,

I'm using GNU Emacs 24.4.4 (x86_64-apple-darwin13.4.0, Carbon Version
157 AppKit 1265.21) with Org-mode version 8.2.10
(8.2.10-29-g89a0ac-elpaplus).

Example file:

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC python :session test :exports none
a = 0.55
#+END_SRC

The result is src_python[:session test :results raw]{'${:.1f}$'.format(a)}.
--8<---------------cut here---------------end--------------->8---

This used to execute without any problem.  Now the related latex export is:

--8<---------------cut here---------------start------------->8---
The result is
\$'.format(a)\}.
--8<---------------cut here---------------end--------------->8---

And there are the outputs in the *test* session:

--8<---------------cut here---------------start------------->8---
>>> '${:.1f
'${:.1f
  File "<stdin>", line 1
    '${:.1f
          ^
SyntaxError: EOL while scanning string literal
--8<---------------cut here---------------end--------------->8---

Yours faithfully,

Tian Qiu

                 reply	other threads:[~2014-12-15 15:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALeUZPfrcb_b3qso0jyjDEKF02nnKi0VjpriUL0px7XvtXLOwg@mail.gmail.com \
    --to=iemacs@gmail.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 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).