Skip to content

Commit af55cbb

Browse files
Perparing for release 0.2.0
1 parent aad0c7e commit af55cbb

File tree

7 files changed

+25
-22
lines changed

7 files changed

+25
-22
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A solution to install and run [code-server](https://github.com/coder/code-server
66

77
## Highlights
88

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).
1010

1111
### Features - Amazon SageMaker Studio
1212

@@ -63,8 +63,8 @@ When using Amazon SageMaker Studio, code-server must be installed on the instanc
6363

6464
From a terminal appropriately configured with AWS CLI, run the following commands:
6565

66-
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.1.5/amazon-sagemaker-codeserver-0.1.5.tar.gz
67-
tar -xvzf amazon-sagemaker-codeserver-0.1.5.tar.gz
66+
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.2.0/amazon-sagemaker-codeserver-0.2.0.tar.gz
67+
tar -xvzf amazon-sagemaker-codeserver-0.2.0.tar.gz
6868

6969
cd amazon-sagemaker-codeserver/install-scripts/studio
7070

@@ -101,8 +101,8 @@ Amazon SageMaker Notebook Instances support lifecycle configuration scripts that
101101

102102
From a terminal appropriately configured with AWS CLI, run the following commands:
103103

104-
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.1.5/amazon-sagemaker-codeserver-0.1.5.tar.gz
105-
tar -xvzf amazon-sagemaker-codeserver-0.1.5.tar.gz
104+
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.2.0/amazon-sagemaker-codeserver-0.2.0.tar.gz
105+
tar -xvzf amazon-sagemaker-codeserver-0.2.0.tar.gz
106106

107107
cd amazon-sagemaker-codeserver/install-scripts/notebook-instances
108108

@@ -126,8 +126,8 @@ Make sure to replace <your_notebook_instance_name>, <your_instance_type> and <yo
126126
1. Open the Amazon SageMaker Studio system terminal
127127
2. From the terminal, run the following commands:
128128

129-
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.1.5/amazon-sagemaker-codeserver-0.1.5.tar.gz
130-
tar -xvzf amazon-sagemaker-codeserver-0.1.5.tar.gz
129+
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.2.0/amazon-sagemaker-codeserver-0.2.0.tar.gz
130+
tar -xvzf amazon-sagemaker-codeserver-0.2.0.tar.gz
131131

132132
cd amazon-sagemaker-codeserver/install-scripts/studio
133133
@@ -145,8 +145,8 @@ Make sure to replace <your_notebook_instance_name>, <your_instance_type> and <yo
145145
1. Access JupyterLab and open a terminal
146146
2. From the terminal run the following commands:
147147

148-
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.1.5/amazon-sagemaker-codeserver-0.1.5.tar.gz
149-
tar -xvzf amazon-sagemaker-codeserver-0.1.5.tar.gz
148+
curl -LO https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.2.0/amazon-sagemaker-codeserver-0.2.0.tar.gz
149+
tar -xvzf amazon-sagemaker-codeserver-0.2.0.tar.gz
150150

151151
cd amazon-sagemaker-codeserver/install-scripts/notebook-instances
152152
@@ -164,7 +164,7 @@ Make sure to replace <your_notebook_instance_name>, <your_instance_type> and <yo
164164
## Advanced configuration
165165
The install scripts define the following variables that can be modified to customize the install procedure.
166166

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
168168
- **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/).
169169
- **XDG_DATA_HOME** - The directory where user-specific code-server data is stored.
170170
- **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
178178
- **LAUNCHER_ENTRY_TITLE** - The label of the button added to the JupyterLab launcher. Defaults to 'Code Server'.
179179
- **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.
180180
- **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.
183181

184182
## Architecture
185183

@@ -196,10 +194,15 @@ The install scripts define the following variables that can be modified to custo
196194

197195
![Compatibility matrix](./images/compatibility.png)
198196

199-
## Known limitations
197+
Please read the following section for the known limitations when using JupyterLab 1.
198+
199+
## Caveats / known limitations
200200

201201
- 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/
203206

204207
## License
205208

install-scripts/notebook-instances/setup-codeserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ EXTENSION_GALLERY_CONFIG='{{\"serviceUrl\":\"\",\"cacheUrl\":\"\",\"itemUrl\":\"
1919

2020
LAUNCHER_ENTRY_TITLE='Code Server'
2121
PROXY_PATH='codeserver'
22-
LAB_3_EXTENSION_DOWNLOAD_URL='https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.1.5/sagemaker-jproxy-launcher-ext-0.1.3.tar.gz'
22+
LAB_3_EXTENSION_DOWNLOAD_URL='https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.2.0/sagemaker-jproxy-launcher-ext-0.2.0.tar.gz'
2323

2424
#############
2525
# INSTALL #

install-scripts/studio/install-codeserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ EXTENSION_GALLERY_CONFIG='{{\"serviceUrl\":\"\",\"cacheUrl\":\"\",\"itemUrl\":\"
2121

2222
LAUNCHER_ENTRY_TITLE='Code Server'
2323
PROXY_PATH='codeserver'
24-
LAB_3_EXTENSION_DOWNLOAD_URL='https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.1.5/sagemaker-jproxy-launcher-ext-0.1.3.tar.gz'
24+
LAB_3_EXTENSION_DOWNLOAD_URL='https://github.com/aws-samples/amazon-sagemaker-codeserver/releases/download/v0.2.0/sagemaker-jproxy-launcher-ext-0.2.0.tar.gz'
2525

2626
#############
2727
# INSTALL #

server-proxy-lab-extension/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server-proxy-lab-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amzn/sagemaker-jproxy-launcher-ext",
3-
"version": "0.1.6",
3+
"version": "0.2.0",
44
"description": "JupyterLab extension for proxy services.",
55
"keywords": [
66
"jupyter",

server-proxy-lab-extension/sagemaker_jproxy_launcher_ext/labextension/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amzn/sagemaker-jproxy-launcher-ext",
3-
"version": "0.1.6",
3+
"version": "0.2.0",
44
"description": "JupyterLab extension for proxy services.",
55
"keywords": [
66
"jupyter",
@@ -79,7 +79,7 @@
7979
"extension": true,
8080
"outputDir": "sagemaker_jproxy_launcher_ext/labextension",
8181
"_build": {
82-
"load": "static/remoteEntry.a49dcdf7507b0f64a98d.js",
82+
"load": "static/remoteEntry.0f024b114169ce19fce1.js",
8383
"extension": "./extension",
8484
"style": "./style"
8585
}

0 commit comments

Comments
 (0)