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

Symbolic Math #231

Open blink1073 opened 8 years ago

blink1073 commented 8 years ago

I'm filing this issue on behalf of @karldw, originally https://github.com/Calysto/matlab_kernel/issues/37.

>>> import pymatbridge as pymat
/home/karl/.conda/lib/python3.5/site-packages/IPython/nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated. You should import from nbformat instead.
  "You should import from nbformat instead.", ShimWarning)
>>> matlab = pymat.Matlab()
>>> matlab.start()
Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge-b0341d2a-d1a4-42fd-a2a7-60aed0973e70
Send 'exit' command to kill the server
.......MATLAB started and connected!
<pymatbridge.pymatbridge.Matlab object at 0x7f6508fb5780>
>>> res_dict = matlab.run_code('syms x;')
>>> res_dict
{'content': {'stdout': 'Invalid variable name "matrix(0, 1, [])" in ASSIGNIN.'}, 'success': False, 'result': ''}
arokem commented 8 years ago

Without access to Matlab, and with Octave only partially working on my current machine -- very hard for me to debug this. Sorry.

karldw commented 8 years ago

Bummer. Okay, thank you both!