Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ff7474

Browse files
committed
Add support for Octave magic
1 parent 1d14fe9 commit 7ff7474

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pymatbridge/matlab_magic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ def __init__(self, shell,
9595
super(MatlabMagics, self).__init__(shell)
9696
self.cache_display_data = cache_display_data
9797

98-
self.Matlab = pymat.Matlab(matlab, maxtime=maxtime)
98+
if 'octave' in matlab:
99+
self.Matlab = pymat.Octave(matlab, maxtime=maxtime)
100+
else:
101+
self.Matlab = pymat.Matlab(matlab, maxtime=maxtime)
99102
self.Matlab.start()
100103
self.pyconverter = pyconverter
101104

0 commit comments

Comments
 (0)