Discussion:
Comm. with Octave 3.0.5 by use of EXPECT
(too old to reply)
Loretta SALINO
2009-06-03 17:43:15 UTC
Permalink
I've a Python script that communicates with Octave. It sends commands and
receives answers. However, if the data shown in an Octave console are too
long, they are shown by "most", which provides scrolling capabilities and
the like. The part of my Python script comm'ing with Octave relies on plain
console output, where the last string is the Octave prompt. Then pyexpect
knows, that the output has finished and the data can be sent back to the
client. How can I get rid of "most" and activate plain output into a
console?

OTOH I could connect to Octave as a server. Are there any examples out there
showing how to do that with version *3.0.5*?

Best regards
Loretta
d***@free.fr
2009-06-03 20:13:14 UTC
Permalink
Post by Loretta SALINO
I've a Python script that communicates with Octave. It sends commands and
receives answers. However, if the data shown in an Octave console are too
long, they are shown by "most", which provides scrolling capabilities and
the like. The part of my Python script comm'ing with Octave relies on plain
console output, where the last string is the Octave prompt. Then pyexpect
knows, that the output has finished and the data can be sent back to the
client. How can I get rid of "most" and activate plain output into a
console?
OTOH I could connect to Octave as a server. Are there any examples out there
showing how to do that with version *3.0.5*?
Best regards
Loretta
Try the octave command "more off" or look at Pytave extension at

https://launchpad.net/pytave

D,
Thin Myrna
2009-06-04 17:46:13 UTC
Permalink
Post by d***@free.fr
Post by Loretta SALINO
I've a Python script that communicates with Octave. It sends commands and
receives answers. However, if the data shown in an Octave console are too
long, they are shown by "most", which provides scrolling capabilities and
the like. The part of my Python script comm'ing with Octave relies on
plain console output, where the last string is the Octave prompt. Then
pyexpect knows, that the output has finished and the data can be sent
back to the client. How can I get rid of "most" and activate plain output
into a console?
OTOH I could connect to Octave as a server. Are there any examples out
there showing how to do that with version *3.0.5*?
Best regards
Loretta
Try the octave command "more off" or look at Pytave extension at
That did it! Thanks a lot!
Post by d***@free.fr
https://launchpad.net/pytave
D,
Loretta
d***@free.fr
2009-06-03 20:13:14 UTC
Permalink
Post by Loretta SALINO
I've a Python script that communicates with Octave. It sends commands and
receives answers. However, if the data shown in an Octave console are too
long, they are shown by "most", which provides scrolling capabilities and
the like. The part of my Python script comm'ing with Octave relies on plain
console output, where the last string is the Octave prompt. Then pyexpect
knows, that the output has finished and the data can be sent back to the
client. How can I get rid of "most" and activate plain output into a
console?
OTOH I could connect to Octave as a server. Are there any examples out there
showing how to do that with version *3.0.5*?
Best regards
Loretta
Try the octave command "more off" or look at Pytave extension at

https://launchpad.net/pytave

D,

Continue reading on narkive:
Loading...