From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: asynchronous code evaluation Date: Wed, 4 Sep 2013 10:00:40 +0200 Message-ID: <20130904080040.GE679@kuru.dyndns-at-home.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH81I-0003tZ-Ua for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 04:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VH817-0004F4-Jk for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 04:00:56 -0400 Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:35308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH817-0004Er-3s for emacs-orgmode@gnu.org; Wed, 04 Sep 2013 04:00:45 -0400 Received: by mail-ee0-f50.google.com with SMTP id d51so3451234eek.23 for ; Wed, 04 Sep 2013 01:00:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: emacs-orgmode@gnu.org 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. 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. Hope this helps, -- Suvayu Open source is the future. It sets us free.