Last active
December 19, 2021 00:02
-
-
Save pogin503/ad1f14c09f3bf12b8096a644db237fd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash etc | |
jupyterlab.sh 8888 /Volumes/ext_SSD/ \ | |
1>> /Users/${USER}/var/log/jupyter/jupyterlab.log \ | |
2>> /Users/${USER}/var/log/jupyter/jupyterlab.err.log & | |
# fish | |
jupyterlab.sh 8888 /Volumes/ext_SSD/ \ | |
1>> /Users/{$USER}/var/log/jupyter/jupyterlab.log \ | |
2>> /Users/{$USER}/var/log/jupyter/jupyterlab.err.log & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
PORT="$1" | |
DIR="$2" | |
export XDG_CONFIG_HOME="$HOME/.config" | |
export XDG_CACHE_HOME="$HOME/.cache" | |
export XDG_DATA_HOME="$HOME/.local/share" | |
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME"/jupyter | |
export JUPYTER_DATA_DIR="$XDG_DATA_HOME"/jupyter | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" # if `pyenv` is not already on PATH | |
eval "$(pyenv init --path)" | |
eval "$(pyenv init -)" | |
export PATH="$HOME"/.local/bin:"$PATH" | |
env | sort | |
printf "version: " | |
jupyter --version | |
printf "config-dir: " | |
jupyter --config-dir | |
printf "data-dir: " | |
jupyter --data-dir | |
printf "rintime-dir: " | |
jupyter --runtime-dir | |
jupyter lab --port "$PORT" --notebook-dir "$DIR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment