File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/jupyter_matlab_kernel Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -399,9 +399,10 @@ def perform_startup_checks(self):
399
399
400
400
# Wait until MATLAB is started before sending requests.
401
401
timeout = 0
402
+ MATLAB_STARTUP_MAX_TIMEOUT = 120
402
403
while (
403
404
self .matlab_status != "up"
404
- and timeout != 15
405
+ and timeout != MATLAB_STARTUP_MAX_TIMEOUT
405
406
and not self .matlab_proxy_has_error
406
407
):
407
408
if self .is_matlab_licensed :
@@ -429,7 +430,7 @@ def perform_startup_checks(self):
429
430
# If MATLAB is not available after 15 seconds of licensing information
430
431
# being available either through user input or through matlab-proxy cache,
431
432
# then display connection error to the user.
432
- if timeout == 15 or self .matlab_proxy_has_error :
433
+ if timeout == MATLAB_STARTUP_MAX_TIMEOUT or self .matlab_proxy_has_error :
433
434
raise MATLABConnectionError
434
435
435
436
def display_output (self , out ):
You can’t perform that action at this time.
0 commit comments