From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederick Giasson Subject: Re: ob-clojure: possible to display results as soon as something is written to STDOUT? Date: Wed, 30 Mar 2016 10:07:48 -0400 Message-ID: <56FBDDB4.90904@fgiasson.com> References: <56FABF0C.5030808@fgiasson.com> <87mvpgnun2.fsf@ucl.ac.uk> <56FBC0EA.6080000@fgiasson.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGmj-0003Q4-2b for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 10:07:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alGmf-0007Lu-Qv for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 10:07:49 -0400 Received: from s052.panelboxmanager.com ([72.55.186.33]:46344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGmf-0007Lo-Mm for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 10:07:45 -0400 Received: from mailnull by s052.panelboxmanager.com with sa-checked (Exim 4.86_1) (envelope-from ) id 1alGmf-004G6u-5r for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 10:07:45 -0400 Received: from modemcable161.56-23-96.mc.videotron.ca ([96.23.56.161]:52358 helo=[192.168.0.13]) by s052.panelboxmanager.com with esmtpsa (TLSv1.2:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.86_1) (envelope-from ) id 1alGme-004G6V-Uh for emacs-orgmode@gnu.org; Wed, 30 Mar 2016 10:07:44 -0400 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 Hi John! Interesting approach :) I am really new with org-mode, but I will try to adapt for ob-clojure.el. One question: this function "org-babel-async-execute:python", where should I register it? I guess it should replace "org-babel-execute:python"? Thanks for this precision will work on that once I know how to plug that into org-mode to start testing the code I will adapt. Thanks, Fred > This might not be totally true. > > In this post I use a few different asynchronous approaches to running > Python that do something like what you want, perhaps especially the last > bit of the post. > > http://kitchingroup.cheme.cmu.edu/blog/2015/11/20/Asynchronously-running-python-blocks-in-org-mode/ > > Maybe you could adapt it for clojure. > > Frederick Giasson writes: > >> Hi Eric, >> >>>> Note: I am not sure if this is something related to Org-mode, or >>>> ob-clojure or Cider. >>> None of these directly. It's Emacs, basically: it has very minimal >>> support for threading so the whole process (Emacs) is waiting for the >>> sub-process (Clojure) to finish before doing anything else. >> >> Ok good, thanks for confirming! >> >> Take care, >> >> Fred > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu >