1
- @ echo off
2
- set conda_env_name = %1
3
- set automl_env_file = %2
4
- set options = %3
5
- set PIP_NO_WARN_SCRIPT_LOCATION = 0
6
-
7
- IF " %conda_env_name% " == " " SET conda_env_name = " azure_automl"
8
- IF " %automl_env_file% " == " " SET automl_env_file = " automl_env.yml"
9
-
10
- IF NOT EXIST %automl_env_file% GOTO YmlMissing
11
-
12
- call conda activate %conda_env_name% 2 > nul :
13
-
14
- if not errorlevel 1 (
15
- echo Upgrading azureml-sdk[automl,notebooks,explain] in existing conda environment %conda_env_name%
16
- call pip install --upgrade azureml-sdk[automl,notebooks,explain]
17
- if errorlevel 1 goto ErrorExit
18
- ) else (
19
- call conda env create -f %automl_env_file% -n %conda_env_name%
20
- )
21
-
22
- call conda activate %conda_env_name% 2 > nul :
23
- if errorlevel 1 goto ErrorExit
24
-
25
- call python -m ipykernel install --user --name %conda_env_name% --display-name " Python (%conda_env_name% )"
26
-
27
- REM azureml.widgets is now installed as part of the pip install under the conda env.
28
- REM Removing the old user install so that the notebooks will use the latest widget.
29
- call jupyter nbextension uninstall --user --py azureml.widgets
30
-
31
- echo .
32
- echo .
33
- echo ***************************************
34
- echo * AutoML setup completed successfully *
35
- echo ***************************************
36
- IF NOT " %options% " == " nolaunch" (
37
- echo .
38
- echo Starting jupyter notebook - please run the configuration notebook
39
- echo .
40
- jupyter notebook --log-level=50 --notebook-dir='..\..'
41
- )
42
-
43
- goto End
44
-
45
- :YmlMissing
46
- echo File %automl_env_file% not found.
47
-
48
- :ErrorExit
49
- echo Install failed
50
-
1
+ @ echo off
2
+ set conda_env_name = %1
3
+ set automl_env_file = %2
4
+ set options = %3
5
+ set PIP_NO_WARN_SCRIPT_LOCATION = 0
6
+
7
+ IF " %conda_env_name% " == " " SET conda_env_name = " azure_automl"
8
+ IF " %automl_env_file% " == " " SET automl_env_file = " automl_env.yml"
9
+
10
+ IF NOT EXIST %automl_env_file% GOTO YmlMissing
11
+
12
+ call conda activate %conda_env_name% 2 > nul :
13
+
14
+ if not errorlevel 1 (
15
+ echo Upgrading azureml-sdk[automl,notebooks,explain] in existing conda environment %conda_env_name%
16
+ call pip install --upgrade azureml-sdk[automl,notebooks,explain]
17
+ if errorlevel 1 goto ErrorExit
18
+ ) else (
19
+ call conda env create -f %automl_env_file% -n %conda_env_name%
20
+ )
21
+
22
+ call conda activate %conda_env_name% 2 > nul :
23
+ if errorlevel 1 goto ErrorExit
24
+
25
+ call python -m ipykernel install --user --name %conda_env_name% --display-name " Python (%conda_env_name% )"
26
+
27
+ REM azureml.widgets is now installed as part of the pip install under the conda env.
28
+ REM Removing the old user install so that the notebooks will use the latest widget.
29
+ call jupyter nbextension uninstall --user --py azureml.widgets
30
+
31
+ echo .
32
+ echo .
33
+ echo ***************************************
34
+ echo * AutoML setup completed successfully *
35
+ echo ***************************************
36
+ IF NOT " %options% " == " nolaunch" (
37
+ echo .
38
+ echo Starting jupyter notebook - please run the configuration notebook
39
+ echo .
40
+ jupyter notebook --log-level=50 --notebook-dir='..\..'
41
+ )
42
+
43
+ goto End
44
+
45
+ :YmlMissing
46
+ echo File %automl_env_file% not found.
47
+
48
+ :ErrorExit
49
+ echo Install failed
50
+
51
51
:End
0 commit comments