From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: asynchronous python code blocks in org-mode Date: Mon, 30 Nov 2015 12:38:48 +0100 Message-ID: <2015-11-30T12-27-30@devnull.Karl-Voit.at> References: Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3MnU-0000O5-BJ for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 06:39:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3MnQ-0006Mq-8M for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 06:39:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:58369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3MnQ-0006Mi-27 for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 06:39:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a3MnK-0000sa-28 for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 12:38:58 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2015 12:38:58 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2015 12:38:58 +0100 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 * John Kitchin wrote: > Hi everyone, Hi John! > I worked out some ideas on running Python blocks asynchronously in > org-mode, while seeing the output of the code, /and/ still capturing the > output in org-mode! Found the link to your video + blog on Twitter. On the weekend, I watched it with big eyes and tried your code on my side as well: great work! > It seems to work pretty well as a proof of concept, but the present > approach has some limitations, e.g. no sessions, no src-block :var, and > maybe others. These might be fixable at some point. > > Anyway, I thought I would share it, to see if anyone has thoughts on > it, and in case it looks useful to you. I'm loving it. I'd love to see this async method for shell script as well. Many shell snippets I am using do take some time: backup, audio conversion, bulk image conversion, ... 1) How big is the chance that we're going to see async babel block execution by default in a future org-mode release? 2) In the meantime: Wouldn't it be nice to have additional source-block definitions like python + apython (for asynchronous python) or sh + ash? -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github