When I run a process in the Mac Terminal, it gives me an indication of its progress. Here we see that I am 31% complete on downloading the latest org-mode:

enter image description here

How can I get this same sort of progress indicator, when running a process from within a code block in org-mode?

  • I guess this is not possible in general. You would have to know in advance how much work needs to be done, and at some point in time how much work has been done. – John Kitchin Jun 5 '17 at 20:51
  • Well, somehow Terminal figures this out. Emacs can run shell commands, so I have to believe there is someway to implement a similar type of indicator in Emacs... This would especially be useful for scientific computing (i.e, processing large datasets in R) so that you know the process is actually working and not stalled or frozen. – Adam Jun 6 '17 at 23:40
  • See emacs.stackexchange.com/questions/21747/…. The example you show can work because you know how many objects to receive, and how many have been received. If you don't know how long a src block should take, there is now way to know how much progress has been made. – John Kitchin Jun 7 '17 at 6:37
  • I don't know about R, but in Python, we have set up an asynchronous way of running it where you can see intermediate output in another buffer. See github.com/jkitchin/scimax/blob/master/… for how that is done. – John Kitchin Jun 7 '17 at 6:40
  • I am not sure but maybe ob-async helps? – Tobias Dec 27 '17 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.