From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: progress indicator for code blocks? Date: Sat, 30 Aug 2014 09:02:47 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNiJB-0000t2-PM for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 09:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNiJ3-0007Dk-5O for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 09:03:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:36625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNiJ2-0007Da-VO for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 09:03:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XNiJ0-0006QQ-Gt for emacs-orgmode@gnu.org; Sat, 30 Aug 2014 15:02:58 +0200 Received: from c-24-3-17-30.hsd1.pa.comcast.net ([24.3.17.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Aug 2014 15:02:58 +0200 Received: from jkitchin by c-24-3-17-30.hsd1.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Aug 2014 15:02:58 +0200 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 all, I am using org-mode in a class, and some students wondered if it was possible for there to be a progress bar of some kind while a code block is running. Right now Emacs just appears to lock up and there is no indication anything is happening, especially the first time we run a python block. I found make-progress-reporter and tried something like this:: #+BEGIN_SRC emacs-lisp (defadvice org-babel-execute-src-block (around progress nil activate) (let ((pr (make-progress-reporter "Running"))) ad-do-it (progress-reporter-done pr))) #+END_SRC but there is no way to update it, so it doesn't quite do anything useful. What I would really like is an hourglass or some spinning thing. Does anyone know how to get that (in a cross-platform way)? -- ----------------------------------- John Kitchin http://kitchingroup.cheme.cmu.edu