You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ A solution to install and run [code-server](https://github.com/coder/code-server
6
6
7
7
## Highlights
8
8
9
-
This solution works for both [Amazon SageMaker Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio.html) and [Amazon SageMaker Notebook Instances](https://docs.aws.amazon.com/sagemaker/latest/dg/nbi.html) configured to run with both JupyterLab 3 (recommended) and JupyterLab 1. For additional information on compatibility, please check the [compatiblity matrix](#compatibility).
9
+
This solution works for both [Amazon SageMaker Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio.html) and [Amazon SageMaker Notebook Instances](https://docs.aws.amazon.com/sagemaker/latest/dg/nbi.html) configured to run with both JupyterLab 3 (recommended) and JupyterLab 1 (with limitations). For additional information on compatibility, please check the [compatiblity matrix](#compatibility).
10
10
11
11
### Features - Amazon SageMaker Studio
12
12
@@ -63,8 +63,8 @@ When using Amazon SageMaker Studio, code-server must be installed on the instanc
63
63
64
64
From a terminal appropriately configured with AWS CLI, run the following commands:
tar -xvzf amazon-sagemaker-codeserver-0.2.0.tar.gz
150
150
151
151
cd amazon-sagemaker-codeserver/install-scripts/notebook-instances
152
152
@@ -164,7 +164,7 @@ Make sure to replace <your_notebook_instance_name>, <your_instance_type> and <yo
164
164
## Advanced configuration
165
165
The install scripts define the following variables that can be modified to customize the install procedure.
166
166
167
-
-**CODE_SERVER_VERSION** - The version of code-server to install. The solution is tested with version 4.5.2. For a list of the available releases, please check https://github.com/coder/code-server/releases
167
+
-**CODE_SERVER_VERSION** - The version of code-server to install. The solution is tested with version 4.16.1. For a list of the available releases, please check https://github.com/coder/code-server/releases
168
168
-**CODE_SERVER_INSTALL_LOC** - The install location for code-server. For notebook instance setup, please make sure to choose a path on the attached EBS volume (under /home/ec2-user/SageMaker/).
169
169
-**XDG_DATA_HOME** - The directory where user-specific code-server data is stored.
170
170
-**XDG_CONFIG_HOME** - The directory where user-specific code-server config is stored.
@@ -178,8 +178,6 @@ The install scripts define the following variables that can be modified to custo
178
178
-**LAUNCHER_ENTRY_TITLE** - The label of the button added to the JupyterLab launcher. Defaults to 'Code Server'.
179
179
-**PROXY_PATH** - The path that is appended to the Jupyter URI to access code-server. Defaults to 'codeserver'. Changing this value will cause the code-server icon not being used, and falling-back to a generic icon.
180
180
-**LAB_3_EXTENSION_DOWNLOAD_URL** - The download URL of the JupyterLab 3 extension.
181
-
-**INSTALL_LAB1_EXTENSION** - Set to 1 if the JupyterLab 1 extension must be installed, 0 otherwise.
182
-
-**LAB_1_EXTENSION_DOWNLOAD_URL** - The download URL of the JupyterLab 1 extension.
183
181
184
182
## Architecture
185
183
@@ -196,10 +194,15 @@ The install scripts define the following variables that can be modified to custo
Please read the following section for the known limitations when using JupyterLab 1.
198
+
199
+
## Caveats / known limitations
200
200
201
201
- When using SageMaker Studio, code-server data and configuration are stored in non-persistent volumes. As a consequence, when deleting and re-creating a JupyterServer app for a specific user, the install procedure has to be executed again (either automatically with lifecycle configurations, or manually). Please also note that user-specified code-server settings, user-installed extensions, etc. will be lost and will need to be set/installed again. The same considerations apply to the Conda environment. This behavior can be modified by changing the _XDG_DATA_HOME_, _XDG_CONFIG_HOME_ or _CONDA_ENV_LOCATION_ to use the persistent Amazon EFS volume (mounted on /home/sagemaker-user/) based on needs.
202
-
- When running JupyterLab 1 in SageMaker Studio, the JupyterLab extension that adds the code-server button to the launcher is installed in background, to allow the install procedure to complete in the maximum time allowed for lifecycle configurations to complete (5 minutes). As a consequence, the Studio Jupyter Server will be operational even before the install procedure is fully executed, but please expect a restart of the Jupyter server at the end of the background task (within 5-6 minutes). When using lifecycle configurations, you can monitor the full install process from CloudWatch Logs; when using the manual install procedure, please check the logs in the _nohup.out_ file.
202
+
- When using rootless mode in SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-root-access.html), you will need to manually shutdown the JupyterServer at the end of the install procedure, by opening the File menu and clicking on Shut Down.
203
+
- Starting from release 0.2.0 the JupyterLab 1 extension that shows the button to launch code-server in either Studio or Notebook Instances is not supported anymore. However, JupyterLab 1 users can still install this solution and access code-server by typing the following URLs in the browser (and replacing the <placeholders> in the URLs):
204
+
- For SageMaker Notebook Instances: https://\<notebook_instance_name\>.notebook.\<region\>.sagemaker.aws/codeserver/
205
+
- For SageMaker Studio: https://\<domain_id\>.studio.\<region\>.sagemaker.aws/jupyter/default/codeserver/
0 commit comments