emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Johannes Rainer <johannes.rainer@i-med.ac.at>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: asynchronous code evaluation
Date: Wed, 4 Sep 2013 15:23:03 +0200	[thread overview]
Message-ID: <CABxYo6oPjzA7p+UZNkdzqw5YEsOWBCupS7V7Fn=0-1ipr5tE_Q@mail.gmail.com> (raw)
In-Reply-To: <20130904080040.GE679@kuru.dyndns-at-home.com>

[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]

On Wed, Sep 4, 2013 at 10:00 AM, Suvayu Ali <fatkasuvayu+linux@gmail.com>wrote:

> On Wed, Sep 04, 2013 at 07:27:01AM +0200, Johannes Rainer wrote:
> > hi all!
> >
> > I have some pretty calculation intense R code in a code block and when I
> > execute the code (C-c C-c) my emacs freezes and waits for the code to
> > finish. Is there a way to evaluate the code asynchronously, so that I
> could
> > edit the file (obviously not the code block itself) while the code is
> being
> > evaluated?
>
> Not sure that is a possibility yet.  For the moment you could try
> asynchronous export as a workaround.
>
> yes, I will do that. I just realized that I have to set
ess-ask-for-ess-directory to nil, otherwise the async export hangs because
it tries to ask where to start R.


> That said, I am curious why you are knowingly tying a computationally
> intensive (possibly buggy, during development i.e.) process with your
> editor.  I have to work on some fairly computationally intensive
> analysis with Python.  I always keep them in separate modules and
> scripts run from the shell.
>
> well, I'm using emacs/org for my data analyses in R. I thus combine
documentation (i.e. the conclusions drawn from e.g. plots created in R) and
the R code to perform the analysis in my org file. Since I'm analysing high
throughput data some tasks to handle the data are quite time consuming.

cheers, jo


> Hope this helps,
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
>


-- 
Johannes Rainer, PhD
Applied Bioinformatics Group,
Division Molecular Pathophysiology,
Biocenter, Medical University Innsbruck,
Innrain 80/82 II, 6020 Innsbruck, Austria
and
Tyrolean Cancer Research Institute
Innrain 66, 6020 Innsbruck, Austria

Tel.:     +43 (0)512 9003 70961
Email:  johannes.rainer@i-med.ac.at
            johannes.rainer@tcri.at
URL:   http://bioinfo.i-med.ac.at

[-- Attachment #2: Type: text/html, Size: 2946 bytes --]

  reply	other threads:[~2013-09-04 13:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04  5:27 asynchronous code evaluation Johannes Rainer
2013-09-04  8:00 ` Suvayu Ali
2013-09-04 13:23   ` Johannes Rainer [this message]
2013-09-04 15:25     ` Suvayu Ali
2013-09-04 16:59     ` Allen S. Rout
2013-09-04 19:20     ` Brett Viren
2013-09-04 16:08 ` Charles Berry
2013-09-06 17:54 ` Eric Schulte

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='CABxYo6oPjzA7p+UZNkdzqw5YEsOWBCupS7V7Fn=0-1ipr5tE_Q@mail.gmail.com' \
    --to=johannes.rainer@i-med.ac.at \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /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).