SublimeREPL + Octave

I use Octave for some machine processing work, and I noticed in my package library in Sublime that there is SublimeREPL: Octave as an option. However, when I select it, the following error message appears:

FileNotFoundError(2, "No such file or directory: octave")

Is there a way to use sublime for code with Octave?

Many thanks

+4
source share
2 answers

, octave, . Linux OS X which octave, $PATH, (, /opt/local/bin/octave - ). Windows, , octave octave.exe, Windows.

, Sublime Preferences -> Browse Packages..., Packages (). Packages/SublimeREPL/config/Octave Main.sublime-menu Sublime - , JSON. 18 ( ) - ​​ "cmd": ["octave", "-i"],. "octave" "/full/path/to/octave", /full/path/to/ , .

, . Tools -> SublimeREPL -> Octave , octave -i . SublimeREPL REPL , , ..

!

+9

Sublime Text 3 OS X

. ,

Sublime

→ → ...

{
"cmd": ["/usr/local/octave/3.8.0/bin/octave-3.8.0", "$file"],
"selector": "source.m"
}

Octave.sublime-build

Octave

⌘ + B .

!

0

Source: https://habr.com/ru/post/1542214/


All Articles