Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b020a25d
Commit
b020a25d
authored
Mar 14, 2019
by
Nikita Titov
Committed by
Guolin Ke
Mar 14, 2019
Browse files
[ci] compatibility hotfix for notebook execution (#2048)
* ci fix * ci fix for Appveyor * actually firx Appveyor
parent
74ce2cfe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
.appveyor.yml
.appveyor.yml
+1
-1
.ci/test.sh
.ci/test.sh
+1
-1
.ci/test_windows.ps1
.ci/test_windows.ps1
+1
-1
No files found.
.appveyor.yml
View file @
b020a25d
...
...
@@ -53,5 +53,5 @@ test_script:
if (!$?) { $host.SetShouldExit(-1) }
} # run all examples
-
cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide\notebooks
-
conda install -q -y -n test-env ipywidgets notebook
-
conda install -q -y -n test-env ipywidgets notebook
"tornado=5.1.1"
-
jupyter nbconvert --ExecutePreprocessor.timeout=180 --to notebook --execute --inplace *.ipynb
# run all notebooks
.ci/test.sh
View file @
b020a25d
...
...
@@ -139,6 +139,6 @@ matplotlib.use\(\"Agg\"\)\
sed
-i
'.bak'
's/graph.render(view=True)/graph.render(view=False)/'
plot_example.py
for
f
in
*
.py
;
do
python
$f
||
exit
-1
;
done
# run all examples
cd
$BUILD_DIRECTORY
/examples/python-guide/notebooks
conda
install
-q
-y
-n
$CONDA_ENV
ipywidgets notebook
conda
install
-q
-y
-n
$CONDA_ENV
ipywidgets notebook
"tornado=5.1.1"
jupyter nbconvert
--ExecutePreprocessor
.timeout
=
180
--to
notebook
--execute
--inplace
*
.ipynb
||
exit
-1
# run all notebooks
fi
.ci/test_windows.ps1
View file @
b020a25d
...
...
@@ -38,6 +38,6 @@ if ($env:TASK -eq "regular") {
python
$file
;
Check-Output
$?
}
# run all examples
cd
$
env
:
BUILD_SOURCESDIRECTORY
/examples/python-guide/notebooks
conda
install
-q
-y
-n
$
env
:
CONDA_ENV
ipywidgets
notebook
conda
install
-q
-y
-n
$
env
:
CONDA_ENV
ipywidgets
notebook
"tornado=5.1.1"
jupyter
nbconvert
--ExecutePreprocessor
.
timeout
=
180
--to
notebook
--execute
--inplace
*.
ipynb
;
Check-Output
$?
# run all notebooks
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment