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
184aaa00
Unverified
Commit
184aaa00
authored
Jul 04, 2021
by
Nikita Titov
Committed by
GitHub
Jul 03, 2021
Browse files
[ci] ensure interactive_plot_example notebook is run in interactive mode at CI (#4432)
parent
e3203e07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
.ci/test.sh
.ci/test.sh
+1
-0
.ci/test_windows.ps1
.ci/test_windows.ps1
+1
-0
No files found.
.ci/test.sh
View file @
184aaa00
...
...
@@ -237,5 +237,6 @@ matplotlib.use\(\"Agg\"\)\
conda
install
-q
-y
-n
$CONDA_ENV
h5py ipywidgets notebook
# requirements for examples
for
f
in
*
.py
**
/
*
.py
;
do
python
$f
||
exit
-1
;
done
# run all examples
cd
$BUILD_DIRECTORY
/examples/python-guide/notebooks
sed
-i
'.bak'
's/INTERACTIVE = False/assert False, \\"Interactive mode disabled\\"/'
interactive_plot_example.ipynb
jupyter nbconvert
--ExecutePreprocessor
.timeout
=
180
--to
notebook
--execute
--inplace
*
.ipynb
||
exit
-1
# run all notebooks
fi
.ci/test_windows.ps1
View file @
184aaa00
...
...
@@ -112,5 +112,6 @@ if (($env:TASK -eq "regular") -or (($env:APPVEYOR -eq "true") -and ($env:TASK -e
python
$file
;
Check-Output
$?
}
# run all examples
cd
$
env
:
BUILD_SOURCESDIRECTORY
/examples/python-guide/notebooks
(
Get-Content
"interactive_plot_example.ipynb"
)
.
replace
(
'INTERACTIVE = False'
,
'assert False, \"Interactive mode disabled\"'
)
|
Set-Content
"interactive_plot_example.ipynb"
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