imagej / imagej-matlab

MATLAB integration with ImageJ data structures and runtime.
https://imagej.net/scripting/matlab
BSD 2-Clause "Simplified" License
14 stars 6 forks source link

Should the MATLAB GUI be displayed by default? #5

Open hinerm opened 8 years ago

hinerm commented 8 years ago

It needs to be decided whether or not the MATLAB GUI is displayed by default.

On one hand, if the GUI isn't displayed then any state is lost after the MATLAB script ends. So if something does not return as intended there is no way to go back and play with the intermediate outputs of a script.

On the other hand, displaying the GUI takes extra time.

A user can always toggle this via the MATLABOptions but may not know this configuration is available.

A potential compromise might be to treat Options classes kind of like Apps, so the first time you run when you have a new set of options to configure it automatically launches to let the user know what's available.

ctrueden commented 8 years ago

This could go hand in hand with my idea mentioned in #6: to let each script annotate at the top how it wants to behave.

As an aside, I like this better than having Options because the Options may make a script which works on one system fail on a different system. In general, we need to move away from having global preferences whenever possible—or at least embed them in each script somehow for reproducibility.