From f04d4350f3c63b0129e1c68ab9b787502a69c731 Mon Sep 17 00:00:00 2001 From: saundersp Date: Sat, 2 Sep 2023 19:43:14 +0200 Subject: [PATCH] Added some default settings --- helper.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/helper.sh b/helper.sh index 9d7d76c..3cef3f3 100644 --- a/helper.sh +++ b/helper.sh @@ -40,8 +40,12 @@ enable_venv(){ case "$1" in i|-i|install|--install) python -m venv "$VENV_PATH" - mkdir -p "$JUPYTER_ROOT_PATH"/{settings,workspace,config,runtime,data} "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/notebook-extension - echo '{ "maxNumberOutputs": 0 }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/notebook-extension/tracker.jupyterlab-settings + mkdir -p "$JUPYTER_ROOT_PATH"/{settings,workspace,config,runtime,data} "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/{notebook-extension,extensionmanager-extension,apputils-extension} + # Setting it to zero doesn't have the expected result, therefore, let's set it to an abnormally large number. + echo '{ "maxNumberOutputs": 10000000000 }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/notebook-extension/tracker.jupyterlab-settings + echo '{ "disclaimed": true }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/extensionmanager-extension/plugin.jupyterlab-settings + echo '{ "theme": "JupyterLab Dark" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/themes.jupyterlab-settings + echo '{ "fetchNews": "false" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/notification.jupyterlab-settings enable_venv "$2" python -m pip install --timeout 60 --retries 9999999999999999 -U pip setuptools pip install --timeout 60 --retries 9999999999999999 -r requirements.txt