Skip to content

Comments

Make the startup flag "-nodisplay" optional#240

Open
kamesy wants to merge 1 commit intoJuliaInterop:masterfrom
kamesy:kmsy/startflags
Open

Make the startup flag "-nodisplay" optional#240
kamesy wants to merge 1 commit intoJuliaInterop:masterfrom
kamesy:kmsy/startflags

Conversation

@kamesy
Copy link

@kamesy kamesy commented Mar 13, 2025

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

###########################################################
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_msession()
MATLAB.default_msession_ref[] = new_session

@ViralBShah
Copy link
Member

It would be fine to merge and release a new version.

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.

3 participants