Skip to content

Commit

Permalink
Disable rtc for ydoc extension
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonparnell committed Nov 20, 2024
1 parent 9304f47 commit 493ecb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ if [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ] && [ "$SAGEMAKER_SPACE_TYPE_LOWERCASE"
--ServerApp.allow_origin='*' \
--collaborative \
--ServerApp.identity_provider_class=sagemaker_jupyterlab_extension_common.identity.SagemakerIdentityProvider \
--YDocExtension.ystore_class=sagemaker_jupyterlab_extension_common.ydoc_override.ydoc.MySQLiteYStore
--YDocExtension.ystore_class=sagemaker_jupyterlab_extension_common.ydoc_override.ydoc.MySQLiteYStore \
--YDocExtension.disable_rtc=True

# Start Jupyter server
elif [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ]; then
Expand All @@ -28,9 +29,11 @@ elif [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ]; then
jupyter lab --ip 0.0.0.0 --port 8888 \
--ServerApp.base_url="/$SAGEMAKER_APP_TYPE_LOWERCASE/default" \
--ServerApp.token='' \
--ServerApp.allow_origin='*'
--ServerApp.allow_origin='*' \
--YDocExtension.disable_rtc=True
else
jupyter lab --ip 0.0.0.0 --port 8888 \
--ServerApp.token='' \
--ServerApp.allow_origin='*'
--ServerApp.allow_origin='*' \
--YDocExtension.disable_rtc=True
fi
9 changes: 6 additions & 3 deletions template/v3/dirs/usr/local/bin/start-jupyter-server
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ if [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ] && [ "$SAGEMAKER_SPACE_TYPE_LOWERCASE"
--ServerApp.allow_origin='*' \
--collaborative \
--ServerApp.identity_provider_class=sagemaker_jupyterlab_extension_common.identity.SagemakerIdentityProvider \
--YDocExtension.ystore_class=sagemaker_jupyterlab_extension_common.ydoc_override.ydoc.MySQLiteYStore
--YDocExtension.ystore_class=sagemaker_jupyterlab_extension_common.ydoc_override.ydoc.MySQLiteYStore \
--YDocExtension.disable_rtc=True

# Start Jupyter server
elif [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ]; then
Expand All @@ -28,9 +29,11 @@ elif [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ]; then
jupyter lab --ip 0.0.0.0 --port 8888 \
--ServerApp.base_url="/$SAGEMAKER_APP_TYPE_LOWERCASE/default" \
--ServerApp.token='' \
--ServerApp.allow_origin='*'
--ServerApp.allow_origin='*' \
--YDocExtension.disable_rtc=True
else
jupyter lab --ip 0.0.0.0 --port 8888 \
--ServerApp.token='' \
--ServerApp.allow_origin='*'
--ServerApp.allow_origin='*' \
--YDocExtension.disable_rtc=True
fi

0 comments on commit 493ecb0

Please sign in to comment.