Compare commits

..

No commits in common. "606b6c8ff95a9f61cf8bae55484a9d7d8bd2cbc2" and "7244d265fa3e2bedf2dc70773643df6232834c7a" have entirely different histories.

View File

@ -39,20 +39,21 @@ enable_venv(){
case "$1" in case "$1" in
i|-i|install|--install) i|-i|install|--install)
python -m venv --upgrade-deps "$VENV_PATH" python -m venv "$VENV_PATH"
mkdir -pv "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/{notebook-extension,extensionmanager-extension,apputils-extension} 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. # 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 '{ "maxNumberOutputs": 10000000000 }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
echo '{ "disclaimed": true }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/extensionmanager-extension/plugin.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 '{ "theme": "JupyterLab Dark" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/themes.jupyterlab-settings
echo '{ "fetchNews": "false" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/notification.jupyterlab-settings echo '{ "fetchNews": "false" }' > "$JUPYTERLAB_SETTINGS_DIR"/@jupyterlab/apputils-extension/notification.jupyterlab-settings
enable_venv "$2" enable_venv "$2"
pip install --timeout 120 --retries 1000000000000 -r requirements.txt python -m pip install --timeout 120 --retries 10000000000 -U pip setuptools
pip install --timeout 120 --retries 10000000000 -r requirements.txt
;; ;;
k|-k|kernel|--kernel) k|-k|kernel|--kernel)
enable_venv "$2" enable_venv "$2"
mkdir -pv "$R_LIBS_SITE" mkdir -p "$R_LIBS_SITE"
if command -v Rscript >> /dev/null; then if command -v Rscript >> /dev/null; then
Rscript -e 'install.packages("IRkernel",repos="http://cran.r-project.org");library(IRkernel);IRkernel::installspec()' Rscript -e 'install.packages("IRkernel",repos="http://cran.r-project.org");library(IRkernel);IRkernel::installspec()'
else else
@ -73,7 +74,7 @@ case "$1" in
;; ;;
U|-U|uninstall|--uninstall) U|-U|uninstall|--uninstall)
rm -rfv "$VENV_PATH" "$JUPYTER_ROOT_PATH" "$R_LIBS_SITE" .ipynb_checkpoints __pycache__ rm -rf "$VENV_PATH" "$JUPYTER_ROOT_PATH" "$R_LIBS_SITE"
;; ;;
l|-l|launch|--launch) l|-l|launch|--launch)