I don't seem to be able to get the octave magic running in ipython. I've installed gnu octave, and (after importing oct2py) I can use oct2py.octave in canopy. When I launch ipython and issue the command
In [5]: %load_ext octavemagic
I get a return prompt, and %lsmagic says %octave is available. But when I go to actually use octave, e.g.,
In [7]: x = %octave [1 2; 3 4];
ipython just hangs.
I'm running Canopy 1.4.1.1975 on a MacBook with OSX 10.7.5. From the package manager, I've installed ipython 2.1.0-3. Any ideas?
octavemagic
is now a part of theoct2py
package. Please see if this works for you:For me this prints the expected result:
Tested with oct2py-1.6.0 and octave-3.8.1 on a linux system.