Add the possibility to keep the MATLAB shared session even if the Python process exits
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the shared-session cleanup behavior in src/matlab/engine/matlabengine.py at the linked line, then trace how the Python process currently stops MATLAB. Define the flag's lifecycle semantics for multiple Python scripts and verify that a build can reuse one shared session and close it explicitly at the end.
Written by the indexing model from the issue text.
Description
As I understand, once the Python process which connects to the remote session exits, it will also stop the shared session in MATLAB (as seen here). I'm wondering if it would be possible to add a flag allowing us to reuse the shared session between multiple Python scripts?
To give a context, I generate multiple files with MATLAB during the build of a project, and starting/stopping MATLAB for each file is time consuming. The idea here would be to open a shared session at the beginning of the build, generate the files (when required) with MATLAB using this shared session, and close MATLAB at the end.
- Dominant language
- Python
- Stars
- 97
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathworks/matlab-engine-for-python
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Support sparse array Open
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in mathworks/matlab-engine-for-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenHands/extensions#626 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
CSCfi/sd-search-api#39 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
StevenBlack/hosts#3255 ·