I have noticed that the two different ways to access matlab create two different instances:
from pymatbridge import Matlab
mlab = Matlab() mlab.start()
mlab.run_code("1+1");
and
%load_ext pymatbridge
create two different Matlab instances.
Is it possible to create only one Matlab instance, but that can be accessed with both methods?