Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make the startup flag "-nodisplay" optional #240

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamesy
Copy link

@kamesy kamesy commented Mar 13, 2025

For showing figures matlab must be started without the "-nodisplay" flag.

@@ -5,8 +5,8 @@
# Session open & close
#
###########################################################
const default_startflag = "-nodisplay -nosplash -nodesktop" # no additional flags
const default_matlabcmd = matlab_cmd * " -nodisplay -nosplash -nodesktop"
const default_startflag = "-nodisplay"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On which operating system did you test this?
On my machine (macOS) I also need to remove -nodisplay flag, to actually show plots

@tqml
Copy link
Collaborator

tqml commented Mar 16, 2025

Hey @kamesy!
thanks for the PR! Seems like a good addition.

For me, it would be fine to change the default here, as it would be easier for new user. What do you think @musm?

We could also document a way by using a custom MSession on changing the behavior.

For example:

new_session_flags = ""
new_session = session = MATLAB.MSession(MATLAB.default_output_buffer_size; flags=new_session_flags)
MATLAB.close_default_session()
MATLAB.default_session_ref[] = new_session

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

Successfully merging this pull request may close these issues.

2 participants