GNU Octave Module Is Now Interactive!

Commands such as input() or pause() have not worked in the GNU Octave module previously. When these commands were executed, the script simply stopped on the server and waited for human assistance. Of course there was no one to press the button. Getting over this required quite some work! Now, whenever the input() command is detected, the server sends an input request to the client (your web browser) where an input dialog is displayed. This is best illustrated using a simple script:

0

And this is how the input dialog looks like:

0

Similarly, when the pause() command is detected on server, a pause request is sent back to the client. The computation is paused and waits for the user to either resume or abort it:

0

When resumed, the final plot is shown:

0