diff --git a/template/v2/dirs/etc/sagemaker-ui/jupyter/server/jupyter_server_config.py b/template/v2/dirs/etc/sagemaker-ui/jupyter/server/jupyter_server_config.py index 7ce6e079..5eab545f 100644 --- a/template/v2/dirs/etc/sagemaker-ui/jupyter/server/jupyter_server_config.py +++ b/template/v2/dirs/etc/sagemaker-ui/jupyter/server/jupyter_server_config.py @@ -17,6 +17,12 @@ # Related documentation: https://jupyterlab.readthedocs.io/en/stable/user/files.html#displaying-hidden-files c.ContentsManager.allow_hidden = True +# Disable exporters that are not supported by the sagemaker distribution +c.PDFExporter.enabled = False +c.WebPDFExporter.enabled = False +c.QtPNGExporter.enabled = False +c.QtPDFExporter.enabled = False + # This will set the LanguageServerManager.extra_node_roots setting if amazon_sagemaker_sql_editor exists in the # environment. Ignore otherwise, don't fail the JL server start # Related documentation: https://jupyterlab-lsp.readthedocs.io/en/v3.4.0/Configuring.html diff --git a/template/v3/dirs/etc/jupyter/jupyter_server_config.py b/template/v3/dirs/etc/jupyter/jupyter_server_config.py index 0182cc23..53ec20b7 100644 --- a/template/v3/dirs/etc/jupyter/jupyter_server_config.py +++ b/template/v3/dirs/etc/jupyter/jupyter_server_config.py @@ -15,6 +15,12 @@ # Related documentation: https://jupyterlab.readthedocs.io/en/stable/user/files.html#displaying-hidden-files c.ContentsManager.allow_hidden = True +# Disable exporters that are not supported by the sagemaker distribution +c.PDFExporter.enabled = False +c.WebPDFExporter.enabled = False +c.QtPNGExporter.enabled = False +c.QtPDFExporter.enabled = False + # This will set the LanguageServerManager.extra_node_roots setting if amazon_sagemaker_sql_editor exists in the # environment. Ignore otherwise, don't fail the JL server start # Related documentation: https://jupyterlab-lsp.readthedocs.io/en/v3.4.0/Configuring.html