From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: matlab-shell-run-command (was: workflow, matlab+latex in org file) Date: Sun, 12 Mar 2017 15:24:10 +0000 Message-ID: <87k27u34dh.fsf_-_@mat.ucm.es> References: <8760sc8ids.fsf@mat.ucm.es> <87shvg6z9i.fsf@mat.ucm.es> <5e1e71e3698e415ca51a0b9e3cab5dac@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87h931qa9f.fsf@ucl.ac.uk> <87tw70dysj.fsf@mat.ucm.es> <8737ejoq44.fsf@mat.ucm.es> <87lgsbn4f4.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn5MC-0000b2-Q8 for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 11:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cn5M8-0002XS-Gq for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 11:24:28 -0400 Received: from [195.159.176.226] (port=60958 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cn5M8-0002WH-9k for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 11:24:24 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cn5Lx-0002MP-5r for emacs-orgmode@gnu.org; Sun, 12 Mar 2017 16:24:13 +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" To: emacs-orgmode@gnu.org >>> "John" == John Kitchin writes: > You can put them into an elisp src block to try it out. They have to go in > an init file to be permanent. I just made a symlink to the matlab > executable on my path. > The ipython functions are defined in ob-ipython, > https://github.com/gregsexton/ob-ipython I think. I just found out that it will not work for me since the matlab-kernel will need the python support of matlab, which requires version 2016 o later. And indeed the most annoying issue of executing matlab in an org buffer using the babel interface was the fact that it was slow since every time matlab needs to be restarted. Now that matlab-kernel thing seems to resolve the issue. However it needs a very recent version of matlab. Therefore my proposal: there exists already a matlab-shell written in lisp written by Eric Ludlam and others which does not require a restart of matlab for every call. Couldn't your code (defun org-babel-execute:matlab (body params) trying to use matlab-shell-run-command or matlab-shell-run-region? I don't understand enough of either function to try to modify it. Regards Uwe