Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pymatbridge starting but exhibiting weird behavior #253

Open
amine-aboufirass opened this issue May 26, 2017 · 1 comment
Open

Pymatbridge starting but exhibiting weird behavior #253

amine-aboufirass opened this issue May 26, 2017 · 1 comment

Comments

@amine-aboufirass
Copy link

I am trying to load up the pymatbridge package into Spyder IDE using the following Ipython and following recommended usage:

In [1]: from pymatbridge import Matlab
C:\Anaconda\lib\site-packages\IPython\nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated since IPython 4.0. You should import from nbformat instead.
  "You should import from nbformat instead.", ShimWarning)

In [2] : mlab = Matlab()

In [3] : mlab.start()
Starting MATLAB on ZMQ socket tcp://127.0.0.1:60171
Send 'exit' command to kill the server
....MATLAB started and connected!
Out[3]: <pymatbridge.pymatbridge.Matlab at 0xc557748>

This opens a tiny non maximizable window which carries the matlab logo but does absolutely nothing:

enter image description here

Since, again following usage, the following code:

%%matlab
a = linspace(0.01,6*pi,100);
plot(sin(a))
grid on
hold on
plot(cos(a),'r')

Does not open up a plot as it should. What is going on here and how can I get pymatbridge to work properly?

@arokem
Copy link
Owner

arokem commented Jun 18, 2017

Does this work for you outside of Spyder (e.g., in an interactive Python session)?

I am not sure, but it might be some interaction with the IDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants