Python interface to octave

Johann Cohen-Tanugi cohen at slac.stanford.edu
Fri Jul 18 15:25:04 CDT 2008


hi Sven-Erik,
my 'easy' answer is :
1) If you absolutely want octave as the software doing the job, use the 
python module commands to execute it from a python shell.
2) If you are preferentially working in a python environment, why not 
give SciPy a try? Depending on what you exactly need to do, it may give 
you an easy way out.
m2c,
Johann

Sven-Erik Tiberg wrote:
> Hi Francesco
>  
> Thanks for assist me in clearify my Q.
>  
> I like to call for example a file with a function like
>  
> function [ retval1, retval2] = calc_something ( input_arg1, 
> input_arg2, input_arg3 )
>      retval1 = input_arg1 * input_arg2;
>      retval2 = input_arg2 * input_arg3;
> endfunction
>  
> from python using f.example the popen() and/or popen2() metods.
>  
> My intend are to extend octave scripts with python UI and libs.
> probably also for web-UI using web-server plone.org as web-interface 
> to octave scripts.
>  
> I'm looking for examples on how to call octave scripts from python.
>  
> PS. are familiar with matlab / simulink and bit of python and plone. 
>  
> Hope this clearify my question.
> Sven-Erik Tiberg
>  
>  
> ------------------------------------------------------------------------
> *From:* Francesco Potorti` [mailto:Potorti at isti.cnr.it]
> *Sent:* Thu 7/17/2008 10:48 AM
> *To:* Sven-Erik Tiberg
> *Cc:* help-octave at octave.org
> *Subject:* Re: Python interface to octave
>
> >Appreciate any tips?
>
> Hy Sven, maybe no one answered because what you want is not clear :)
>
> --
> Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
> ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
> via G. Moruzzi 1, I-56124 Pisa         Email: Potorti at isti.cnr.it
> (entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>   


More information about the Help-octave mailing list