Open yuvval opened 8 years ago
Glad to hear you have this working (with apologies again for not supporting RHEL - if any users out there want to help build the messenger on that platform - that would be excellent!).
Concerning your issue - note that you can use the 'maxtime' key-word argument to longer intervals than 60 seconds. For example:
mlab = pymatbridge.Matlab(maxtime=120)
To start the ipython extension, you should probably use the syntax used in this example:
https://github.com/arokem/python-matlab-bridge/blob/master/pymatbridge/examples/matlab_magic.ipynb
Loading the extension with:
pymat.load_ipython_extension(ip, maxtime=120)
You can also pass socket_addr
to specify the address to use
Thanks again,
Unfortunately increasing the timeout (even to 10 minutes) didn't solve the issue. Could you please explain how to use the socket_addr with the extension? (I tried with no luck - but not sure i got the syntax right)
Many (Many) Thanks :)
You are correct - it is not currently possible to pass the socket address. I think that #224 should fix that, once merged. I'll let others take a look if they want and merge it some time next week, but you can try out that code for the time being.
Hi,
The Matlab on my machine takes more than 60 seconds to start.
If I do the following, it retries to connect twice to the same socket, and is successful on the 2nd attempt:
However when I try the same with magic commands, it tries a different socket every time. So my connection is unsuccessful
Any idea on how to overcome this issue?
Thanks for your assistance!
Yuval
BTW: wrt the previous issue I reported, I am now running from an ubuntu machine instead of a RHEL (still no su permissions though).