Skip to content

Pymatbridge starting but exhibiting weird behavior #253

@awa5114

Description

@awa5114

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions