4
4
# Filename : visualpy
5
5
# function : control visualpython for Mac/Linux
6
6
# Creator : BlackLogic - LJ
7
- # version : 2.2
7
+ # version : 2.1
8
8
# License :
9
9
# Date : 2020 07.27
10
- # Mdate : 2021 06.04
10
+ # Mdate : 2020 12.29
11
11
#============================================================================
12
12
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}'`
17
14
v_prod='visualpython'
18
15
v_str1='jupyter nbextension'
19
16
v_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}
25
22
#v_list=`${v_str3} | grep -i ${v_prod}`
26
23
v_curt=`${v_str4} | grep 'Version' | cut -d ' ' -f 2`
27
24
v_option=$1
@@ -297,7 +294,7 @@ f_prt_extensiondir() {
297
294
echo "jupyter contrib nbextension install --user"
298
295
f_prt_line2
299
296
echo "for pip"
300
- echo "${v_pip} install -e jupyter_contrib_nbextensions"
297
+ echo "pip install -e jupyter_contrib_nbextensions"
301
298
echo "jupyter contrib nbextension install --user"
302
299
f_prt_line1
303
300
}
325
322
326
323
#============================================================================
327
324
#End of File
328
- #============================================================================
325
+ #============================================================================
0 commit comments