From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: workflow, matlab+latex in org file Date: Sat, 11 Mar 2017 11:53:36 -0500 Message-ID: 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: multipart/alternative; boundary=001a114b318ecb0d81054a775165 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmkGy-0006qA-D5 for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 11:53:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmkGx-0002ZA-2M for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 11:53:40 -0500 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:36830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmkGw-0002YM-S7 for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 11:53:39 -0500 Received: by mail-wm0-x22e.google.com with SMTP id n11so14463608wma.1 for ; Sat, 11 Mar 2017 08:53:38 -0800 (PST) In-Reply-To: <87lgsbn4f4.fsf@mat.ucm.es> 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" --001a114b318ecb0d81054a775165 Content-Type: text/plain; charset=UTF-8 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. John ----------------------------------- 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 On Sat, Mar 11, 2017 at 11:50 AM, Uwe Brauer wrote: > >>> "John" == John Kitchin writes: > > > The kernel provides a "session" so matlab stays alive and doesn't > have to > > restart on every block. > > > The kernel might require python3. > > Although I think I installed the kernel, I am not sure about the code > you sent me, namely > > (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython) > (defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython) > (defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate- > session) > > These ipython functions where are they supposed to be defined? > > BTW where do you tell the kernel about the matlab executables? > > Uwe > > > --001a114b318ecb0d81054a775165 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can put them into an elisp src block to try it out. Th= ey 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,=C2=A0https://github.com/gregsexton/ob-ipython I think.

John

-----------------------------------
Professor John Kitchin= =C2=A0
Doherty Hall A207F
Department of Chemical Engineering
Carne= gie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Sat, Mar 11, 2017 at 11:50 AM, Uwe Brauer= <= oub@mat.ucm.es> wrote:
>>> "John" =3D=3D John Kitchin <jkitchin@andrew.cmu.edu> writes:=

=C2=A0 =C2=A0> The kernel provides a "sessi= on" so matlab stays alive and doesn't have to
=C2=A0 =C2=A0> restart on every block.

=C2=A0 =C2=A0> The kernel might require python3.

Although I think I installed the kernel, I am not sure about the cod= e
you sent me, namely

(defalias 'org-babel-execute:matlab 'org-babel-execute:ipython)
(defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython)
(defalias 'org-babel-matlab-initiate-session 'org-babel-ipytho= n-initiate-session)

These ipython functions where are they supposed to be defined?

BTW where do you=C2=A0 tell the kernel about the matlab executables?

Uwe



--001a114b318ecb0d81054a775165--