Open dwisianto opened 4 years ago
# # [] Conda # cd_de() { conda deactivate; } cd_lst() { conda env list; } cd_act() { conda activate "$1"; } cd_init() { conda create --yes --name "$2" python="$1"; } # $1 envName $2 cd_new() { conda create --yes --name "$1" python=3.6; conda activate "$1"; } cd_del() { conda env remove --name "$1"; } cd_help() { echo "cd_lst "; echo "cd_init pythonVer myEnv "; echo "cd_new myEnv"; echo "cd_act myEnv"; echo "cd_del myEnv"; echo "cd_de" echo " " echo "cd_jp_new" echo "cd_jp_lab" echo "cd_jp_nb" echo "lsof -i :8888" echo "cd_jp_cln : clean jupyter notebook output" } cd_jp_nb() { jupyter notebook; } cd_jp_srv() { jupyter lab; } cd_jp_srv() { jupyter lab --no-browser --port=8899; } cd_jp_new() { # contrib pip install jupyter_contrib_nbextensions; jupyter contrib nbextension install --user; pip install jupyter_nbextensions_configurator; jupyter nbextensions_configurator enable --user; # ijava pushd ./; cd /home/dsm/d20/bin/ijava130; python install.py --sys-prefix; popd; # jupyterlab conda update --yes -n base -c defaults conda; conda upgrade --yes -c conda-forge jupyterlab; conda install --yes -c conda-forge nodejs; pip install jupyterlab; jupyter labextension install @jupyterlab/toc } cd_jp_lsof() { lsof -i 8888; lsof -i 8889; } cd_jp_netstat() { netstat -nlp | grep :8899; } cd_jp_req() { pip -r install requirements.txt; } #cd_jp_cln() { jupyter nbconvert --clear-output --inplace "$1"; } cd_jp_cln() { jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace "$1"; }
bash_profile_conda