Skip to content

Commit e17ced6

Browse files
committed
cleanup Jupyterlab-2 parts
1 parent 359c30e commit e17ced6

File tree

1 file changed

+8
-73
lines changed

1 file changed

+8
-73
lines changed

run_complement_newbuild.bat

Lines changed: 8 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ rem 2020-09-26 Jupyterlab-3 simplification
55
rem 2020-09-27 Jupyterlab-3 5S (looking for missing detail)
66
rem 2020-10-25no_more_needed "nbextension enable" no more needed for bqplot, ipyleaflet, ipympl
77
rem 2021-01-30: jupyterlab2 final stuff removal
8+
rem 2021-03-13: notebook classic stuff removal
89

910

1011
rem if build error, launch "WinPython Command Prompt.exe" dos ico, then try manual install of requirements.txt
11-
rem that is: pip install --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq -c C:\WinP\constraints.txt -r c:\....\requirements.txt
12+
rem that is: pip install --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq -c C:\WinP\constraints.txt -r C:\WinP\bd39\requirements_test.txt Qt5_requirements64.txt Cod_requirements64.txt
13+
rem python -m pip freeze>C:\WinP\bd39\req_test150.txt between intermediate steps
14+
rem
1215
rem ( drag & drop "requirements.txt" file in the dos window a the end of the line, to get full path)
1316
rem then drag & drop "run_complement_newbuild.bat" file in the dos window and launch it
1417

@@ -30,55 +33,12 @@ if not exist "%WINPYDIR%\Lib\site-packages\mingwpy" set pydistutils_cfg=%WINPYDI
3033
if not exist "%WINPYDIR%\Lib\site-packages\mingwpy" echo [config]>%pydistutils_cfg%
3134

3235

33-
34-
@echo off
35-
rem * ===========================
36-
echo finish install of jupyterlab
37-
rem * ===========================
38-
39-
rem 2020-04-10 security
40-
rem if exist "%WINPYDIR%\Lib\site-packages\jupyterlab" "%WINPYDIR%\..\n\npm" config set ignore-scripts true
41-
42-
rem other suggestion from https://github.com/nteract/nteract
43-
rem npm install -g --production windows-build-tools
44-
45-
46-
@echo on
47-
rem * ===================
48-
echo jupyterlab pre-clean meaningless in 3.0
49-
rem * ==================
50-
@echo off
51-
rem pre-clean Whatever jupyterlab version
52-
rem if exist "%WINPYDIR%\Lib\site-packages\jupyterlab" "%WINPYDIR%\Scripts\jupyter.exe" lab clean
53-
54-
55-
rem * ==================
56-
echo finish install of ipydatawidgets (2018-03-10)
57-
rem * =================
58-
if exist "%WINPYDIR%\Lib\site-packages\ipydatawidgets" "%WINPYDIR%\Scripts\jupyter.exe" nbextension install --py --sys-prefix ipydatawidgets
59-
if exist "%WINPYDIR%\Lib\site-packages\ipydatawidgets" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix ipydatawidgets
60-
61-
62-
rem * ==================
63-
echo finish install of ipyvolume / ipywebrtc
64-
rem * =================
65-
if exist "%WINPYDIR%\Lib\site-packages\ipywebrtc" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix ipywebrtc
66-
if exist "%WINPYDIR%\Lib\site-packages\ipyvolume" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix ipyvolume
67-
68-
6936
rem * ==================
70-
echo finish install of pdvega
37+
echo finish install of bqplot (for VSCode 2021-03-13)
7138
rem * =================
72-
if exist "%WINPYDIR%\Lib\site-packages\vega3" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix vega3
73-
74-
75-
rem * ==================
76-
echo finish install of rise
77-
rem * =================
78-
if exist "%WINPYDIR%\Lib\site-packages\rise" "%WINPYDIR%\Scripts\jupyter.exe" nbextension install rise --py --sys-prefix
79-
if exist "%WINPYDIR%\Lib\site-packages\rise" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix rise
80-
39+
if exist "%WINPYDIR%\Lib\site-packages\bqplot" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix bqplot
8140

41+
8242
rem * ==================
8343
echo finish install of nteract_on_jupyter (2018-12-27)
8444
rem * =================
@@ -91,23 +51,6 @@ rem * =================
9151
if exist "%WINPYDIR%\Lib\site-packages\voila" "%WINPYDIR%\Scripts\jupyter.exe" serverextension enable voila --sys-prefix
9252

9353

94-
rem * ==================
95-
echo install of pydeck (2020-02-02)
96-
rem * =================
97-
if exist "%WINPYDIR%\Lib\site-packages\pydeck" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix pydeck
98-
99-
100-
rem * ==================
101-
echo install of labextension install dask-labextension (2020-02-05)
102-
rem * =================
103-
rem no more if exist "%WINPYDIR%\Lib\site-packages\dask_labextension" "%WINPYDIR%\Scripts\jupyter.exe" serverextension enable dask_labextension
104-
105-
106-
rem * ==================
107-
echo finish install of ipygany (2020-12-29)
108-
rem * =================
109-
if exist "%WINPYDIR%\Lib\site-packages\ipygany" "%WINPYDIR%\Scripts\jupyter.exe" nbextension enable --py --sys-prefix ipygany
110-
11154
rem * =================
11255
echo finish install seaborn iris example
11356
rem * =================
@@ -169,16 +112,9 @@ rem * ===================
169112
echo clear jupyterlab staging (2018-03-09)
170113
rem * ===================
171114
if exist "%WINPYDIR%\share\jupyter\lab\staging" rmdir /S /Q "%WINPYDIR%\share\jupyter\lab\staging"
115+
rem if exist "%WINPYDIR%\Lib\site-packages\jupyterlab" "%WINPYDIR%\Scripts\jupyter.exe" lab clean
172116

173117

174-
rem * ===================
175-
echo clear Pyside2 QML (2018-04-29 : it's too big)
176-
rem * ===================
177-
rem 20181222
178-
rem if exist "%WINPYDIR%\Lib\site-packages\PySide2\qml" rmdir /S /Q "%WINPYDIR%\Lib\site-packages\PySide2\qml"
179-
180-
@echo on
181-
182118
echo 2019-10-22 Spyder tweaks moved at the end as suspicion of problem creating (on Python-3.8)
183119
rem * ============================
184120
echo .spyder3\temp.py suspected of creating issue east of Italia
@@ -203,5 +139,4 @@ if exist "%WINPYDIR%\Lib\site-packages\pipdeptree" pipdeptree
203139
goto the_end
204140

205141

206-
207142
:the_end

0 commit comments

Comments
 (0)