Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions template/v4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ RUN if [[ -z $ARG_BASED_ENV_IN_FILENAME ]] ; \
sed -i 's="PySpark"="SparkMagic PySpark"=g' /opt/conda/share/jupyter/kernels/pysparkkernel/kernel.json && \
# Configure RTC - disable jupyter_collaboration by default
jupyter labextension disable @jupyter/collaboration-extension && \
# Disable MCP server extension by default - enabled at startup for SMAI spaces
jupyter server extension disable jupyter_server_mcp && \
# Disable docprovider-extension for v3 and above images
jupyter labextension disable @jupyter/docprovider-extension

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
Comment thread
aws-srijach marked this conversation as resolved.
"@jupyterlab/application-extension:shell": {
"layout": {
"multiple": {
"JupyterlabChat:sidepanel": {
"area": "right"
}
}
}
}
}
9 changes: 9 additions & 0 deletions template/v4/dirs/usr/local/bin/start-jupyter-server
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ else
jupyter labextension disable sagemaker-data-explorer:plugin
fi

# Setup MCP for SMAI spaces only (disabled by default in Dockerfile)
if [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ]; then
jupyter server extension enable jupyter_server_mcp 2>/dev/null || true

# Copy JupyterLab settings (overrides)
mkdir -p /opt/conda/share/jupyter/lab/settings
cp -r /etc/sagemaker/jupyter/lab/settings/. /opt/conda/share/jupyter/lab/settings/
fi

# Enable S3AG plugin if TIP is enabled
if [ -n "$TRUSTED_IDENTITY_PROPOGATION_ENABLED" ]; then
export BOTOCORE_EXPERIMENTAL__PLUGINS=S3AccessGrantsPlugin=aws_s3_access_grants_boto3_plugin.s3_access_grants_plugin
Expand Down