vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
176 stars 17 forks source link

Import partial variables through an `--as` option #342

Closed BoPeng closed 1 year ago

BoPeng commented 1 year ago

In MATLAB I have a struct and only want to send a few of its children to Python. I can successfully do this via dot indexing, however, once the variables are in Python they don't seem to be accessible since the parent object doesn't exist. The work around I've used has been to create temp variable in MATLAB like EEG_times = EEG.times and send that to Python, but I was wondering if there's a better way to accomplish this. I'm not sure if this is just a MATLAB/Octave -> Python issue or if it exists elsewhere.

image

BoPeng commented 1 year ago

Fixed in sos-notebook 0.24.0