Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Restart Matlab Session after fatal error exit #204

Open
Naikless opened this issue Sep 5, 2022 · 1 comment
Open

Restart Matlab Session after fatal error exit #204

Naikless opened this issue Sep 5, 2022 · 1 comment

Comments

@Naikless
Copy link

Naikless commented Sep 5, 2022

Is it possible to restart the default matlab session in the REPL after it exited due to a fatal error without actually restarting the whole REPL?

When I try MATLAB.restart_default_msession() or MATLAB.close_default_msession() I only get
MATLAB.MEngineError("failed to close MATLAB engine session (err = 1)").

@tqml
Copy link
Collaborator

tqml commented Feb 21, 2025

Hey @Naikless !

I think, you should be able to do this with:

MATLAB.default_msession_ref[] = MSession(MATLAB.default_output_buffer_size)

but it might be beneficial to change the error handling of close_default_msession() here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants