arokem / python-matlab-bridge

A simple Python => MATLAB(R) interface and a matlab_magic for ipython
BSD 2-Clause "Simplified" License
332 stars 97 forks source link

using run_func() to run a function in .m file,, my octave code can't access any session variables #256

Closed sh3raawii closed 5 years ago

sh3raawii commented 6 years ago

Seems like any code executed using run_func() can't access session variables set by set_variable()

lrq3000 commented 5 years ago

Yes to access such variables you need to use run_code(). Seems like run_func() purpose is to be as encapsulated as possible, isolated from the rest, which might be a good thing.