Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For completeness:

In general, you should be able to access variables from other programs using the methods in this question. Unfortunately, as vdelecroix points out, Octave's reverse interface is too rudimentary.

sage: O = octave([1,2,3])
sage: O._sage_()
Traceback (click to the left of this block for traceback)
... 
NotImplementedError: Unable to parse output:    1 2 3

But maybe someone will write a better parser for various Octave objects... and this will work for very simple things like integers.

For completeness:

In general, you should be able to access variables from other programs using the methods in this question. Unfortunately, as vdelecroix points out, Octave's Sage's reverse interface to Octave is too rudimentary.

sage: O = octave([1,2,3])
sage: O._sage_()
Traceback (click to the left of this block for traceback)
... 
NotImplementedError: Unable to parse output:    1 2 3

But maybe someone will write a better parser for various Octave objects... and this will work for very simple things like integers.