From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Rainer Subject: Re: asynchronous code evaluation Date: Wed, 4 Sep 2013 15:23:03 +0200 Message-ID: References: <20130904080040.GE679@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d4a3086f92604e58eb435 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHD34-0002KD-BX for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 09:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHD32-0006og-Ko for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 09:23:06 -0400 Received: from mail-vb0-x22e.google.com ([2607:f8b0:400c:c02::22e]:47771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHD32-0006ob-FG for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 09:23:04 -0400 Received: by mail-vb0-f46.google.com with SMTP id p13so197773vbe.19 for ; Wed, 04 Sep 2013 06:23:04 -0700 (PDT) In-Reply-To: <20130904080040.GE679@kuru.dyndns-at-home.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: emacs-orgmode@gnu.org --047d7b5d4a3086f92604e58eb435 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 4, 2013 at 10:00 AM, Suvayu Ali 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 --047d7b5d4a3086f92604e58eb435 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Wed, Sep 4, 2013 at 10:00 AM, Suvayu Ali <<= a href=3D"mailto:fatkasuvayu+linux@gmail.com" target=3D"_blank">fatkasuvayu= +linux@gmail.com> wrote:
On W= ed, 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<= br> > 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. =A0For the moment you could= try
asynchronous export as a workaround.

yes, I will do that. I just realized that I have to s= et ess-ask-for-ess-directory to nil, otherwise the async export hangs becau= se it tries to ask where to start R.
=A0
That said, I am curious why you are knowingly tying a computationally
intensive (possibly buggy, during development i.e.) process with your
editor. =A0I have to work on some fairly computationally intensive
analysis with Python. =A0I 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. plot= s created in R) and the R code to perform the analysis in my org file. Sinc= e I'm analysing high throughput data some tasks to handle the data are = quite time consuming.

cheers, jo
=A0
Hope this helps,

--
Suvayu

Open source is the future. It sets us free.




--
Johannes = Rainer, PhD
Applied Bioinformatics Group,
Division Molecular Pathophy= siology,
Biocenter, Medical University Innsbruck,
Innrain 80/82 II, 6= 020 Innsbruck, Austria
and
Tyrolean Cancer Research Institute
Innrain 66, 6020 Innsbruck, Au= stria

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

<= br>
--047d7b5d4a3086f92604e58eb435--