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

Floating figures don't work on Windows #242

Open patrick984 opened 8 years ago

patrick984 commented 8 years ago

The %%matlab --gui IPython magic does not produce floating figures properly on Windows.

Can be reproduced with the following code (Jupyter Notebook, MATLAB 2014b, Windows 10 x64):

import pymatbridge as pymat
ip = get_ipython()
pymat.load_ipython_extension(ip)
%%matlab --gui
x = linspace(0, 2*pi, 100);
y = sin(x);
plot(x, y)

Figure 1 does appear in the taskbar, however the figure window itself does not appear and clicking on attempting to activate it by clicking on the taskbar entry does nothing.

I was under the impression this was supposed to work as indicated in #150.

lrq3000 commented 4 years ago

Same here, and I'm not using the ipython magic but directly trying to call a matlab function from a python script. The Matlab console works fine, and there is some debug info that shows that the plot was successfully launched, but the plot itself is a freezed blank window.

lrq3000 commented 4 years ago

It's a shame because this library is the most stable python-matlab bridge I have ever found, but this bug prevents me from deploying it.