Skip to content

Commit f43eb7d

Browse files
committed
Update startup.m to enable proper error message with add-on explorer
1 parent 99896aa commit f43eb7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jupyter_matlab_proxy/matlab/startup.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@
1919
connector.internal.setConfig('contextRoot', getenv('BASE_URL'))
2020
end
2121
connector.internal.Worker.start
22+
23+
% Add-on explorer is not supported in this environment.
24+
% The following settings instructs it to display appropriate error messages when used.
25+
matlab_settings = settings;
26+
matlab_settings.matlab.addons.explorer.addSetting('isExplorerSupported');
27+
matlab_settings.matlab.addons.explorer.isExplorerSupported.PersonalValue = false;
28+
2229
clear

0 commit comments

Comments
 (0)