44# Filename : visualpy
55# function : control visualpython for Mac/Linux
66# Creator : BlackLogic - LJ
7- # version : 2.2
7+ # version : 2.1
88# License :
99# Date : 2020 07.27
10- # Mdate : 2021 06.04
10+ # Mdate : 2020 12.29
1111#============================================================================
1212
13- v_pip=pip
14- which pip3 > /dev/null 2>&1 && v_pip=pip3
15-
16- v_path1=`${v_pip} show visualpython | grep Location | awk -F': ' '{print $2}'`
13+ v_path1=`pip show visualpython | grep Location | awk -F': ' '{print $2}'`
1714v_prod='visualpython'
1815v_str1='jupyter nbextension'
1916v_str2='visualpython/src/main'
20- v_unst='${v_pip} uninstall '${v_prod}
21- v_upgr='${v_pip} install '${v_prod}' --upgrade'
22- #v_srch='${v_pip} search '${v_prod}
23- v_str3='${v_pip} list -o '
24- v_str4='${v_pip} show '${v_prod}
17+ v_unst='pip uninstall '${v_prod}
18+ v_upgr='pip install '${v_prod}' --upgrade'
19+ #v_srch='pip search '${v_prod}
20+ v_str3='pip list -o '
21+ v_str4='pip show '${v_prod}
2522#v_list=`${v_str3} | grep -i ${v_prod}`
2623v_curt=`${v_str4} | grep 'Version' | cut -d ' ' -f 2`
2724v_option=$1
@@ -297,7 +294,7 @@ f_prt_extensiondir() {
297294 echo "jupyter contrib nbextension install --user"
298295 f_prt_line2
299296 echo "for pip"
300- echo "${v_pip} install -e jupyter_contrib_nbextensions"
297+ echo "pip install -e jupyter_contrib_nbextensions"
301298 echo "jupyter contrib nbextension install --user"
302299 f_prt_line1
303300}
325322
326323#============================================================================
327324#End of File
328- #============================================================================
325+ #============================================================================
0 commit comments