-
Notifications
You must be signed in to change notification settings - Fork 1
/
ox-cli-jupyter.sh
46 lines (36 loc) · 1.23 KB
/
ox-cli-jupyter.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash /bin/zsh
##########################################################
# config
##########################################################
OX_ELEMENT[jr]="${HOME}/.jupyter/jupyter_notebook_config.py"
##########################################################
# main
##########################################################
alias jrh="jupyter --help"
alias jrn="jupyter notebook"
alias jrncf="jupyter notebook --generate-config"
alias jrl="jupyter lab"
if [[ $(uname) = "Darwin" ]]; then
jrcl() {
echo "Cleaning up Jupyter Runtime Cache."
rm -rfv "${HOME}"/Library/Jupyter/runtime/*.json
}
fi
##########################################################
# kernelspec
##########################################################
alias jrk="jupyter kernelspec"
alias jrkls="jupyter kernelspec list"
alias jrkis="jupyter kernelspec install"
alias jrkus="jupyter kernelspec remove"
##########################################################
# book
##########################################################
alias jrb="jupyter-book"
alias jrbcr="jupyter-book create"
alias jrbcl="jupyter-book clean"
alias jrbb="jupyter-book build"
ghp() {
ghp-import -n -p -f "$1"/_build/html
}
export PYDEVD_DISABLE_FILE_VALIDATION=1