emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: emacs-orgmode@gnu.org
Subject: Re: Babel python question: use of ipython and %cpaste
Date: Tue, 03 Dec 2013 13:48:06 +0100	[thread overview]
Message-ID: <529DD306.2090109@easy-emacs.de> (raw)
In-Reply-To: <529D7546.3080500@lbl.gov>

Am 03.12.2013 07:08, schrieb Arun Persaud:
> Hi
>
> being able to use python as a source block is great, but I often stumble
> over the fact that when using sessions you have to treat empty lines in
> a special way (i.e. as the end of an indentation block).
>
> I was wondering if it would be easy to create an ipython mode, something
> like
>
> #+BEGIN_SRC ipython ...
>
> where the content for a session is copied over to an ipython buffer
> using the ipython magic %cpaste. This way empty lines should be treated
> correctly.
>

Using the magic command, as shown in Rasmus' answer, should work.
If not, as for python-mode.el, please file a bug-report at

https://bugs.launchpad.net/python-mode

      parent reply	other threads:[~2013-12-03 12:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03  6:08 Babel python question: use of ipython and %cpaste Arun Persaud
2013-12-03 11:44 ` Rasmus
2013-12-03 20:35   ` Arun Persaud
2013-12-03 12:48 ` Andreas Röhler [this message]

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=529DD306.2090109@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --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).