File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
v2/dirs/etc/sagemaker-ui/jupyter
v3/dirs/etc/sagemaker-ui/jupyter Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 88 "@amzn/sagemaker-jupyterlab-extensions:spacemenu" : true ,
99 "@amzn/amazon_sagemaker_sql_editor" : true ,
1010 "@sagemaker-studio:EmrCluster" : true ,
11- "@jupyterlab/scheduler" : true ,
1211 "@jupyter/collaboration-extension" : true
1312 }
1413}
Original file line number Diff line number Diff line change 11import os
22
3+ from sagemaker_studio_jupyter_scheduler .scheduler import (
4+ SagemakerEnvironmentManager ,
5+ SageMakerJobFilesManager ,
6+ SageMakerUnifiedStudioScheduler ,
7+ )
8+
39c .ServerApp .terminado_settings = {"shell_command" : ["/bin/bash" ]}
410region = os .environ .get ("AWS_REGION" )
511csp_rule = os .environ .get ("JUPYTERSERVER_CSP_RULE" )
2733 module_location = os .path .dirname (module .__file__ )
2834 c .LanguageServerManager .extra_node_roots = [f"{ module_location } /sql-language-server" ]
2935except :
36+
3037 pass
38+
39+ c .SchedulerApp .scheduler_class = SageMakerUnifiedStudioScheduler
40+ c .SchedulerApp .environment_manager_class = SagemakerEnvironmentManager
41+ c .SchedulerApp .job_files_manager_class = SageMakerJobFilesManager
Original file line number Diff line number Diff line change 88 "@amzn/sagemaker-jupyterlab-extensions:spacemenu" : true ,
99 "@amzn/amazon_sagemaker_sql_editor" : true ,
1010 "@sagemaker-studio:EmrCluster" : true ,
11- "@jupyterlab/scheduler" : true ,
1211 "@jupyter/collaboration-extension" : true
1312 }
1413}
Original file line number Diff line number Diff line change 11import os
22
3+ from sagemaker_studio_jupyter_scheduler .scheduler import (
4+ SagemakerEnvironmentManager ,
5+ SageMakerJobFilesManager ,
6+ SageMakerUnifiedStudioScheduler ,
7+ )
8+
39c .ServerApp .terminado_settings = {"shell_command" : ["/bin/bash" ]}
410region = os .environ .get ("AWS_REGION" )
511csp_rule = os .environ .get ("JUPYTERSERVER_CSP_RULE" )
2834 c .LanguageServerManager .extra_node_roots = [f"{ module_location } /sql-language-server" ]
2935except :
3036 pass
37+
38+ c .SchedulerApp .scheduler_class = SageMakerUnifiedStudioScheduler
39+ c .SchedulerApp .environment_manager_class = SagemakerEnvironmentManager
40+ c .SchedulerApp .job_files_manager_class = SageMakerJobFilesManager
You can’t perform that action at this time.
0 commit comments