Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 232225f

Browse files
afrozenatorcopybara-github
authored andcommitted
Execute jupyter nbconvert on python3 instead of python2.
python2 fails with: `RuntimeError: Kernel died before replying to kernel_info` python3 seems to pass. PiperOrigin-RevId: 272718077
1 parent 176148c commit 232225f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

oss_scripts/oss_tests.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,18 @@ then
166166
# Can't add disable warning here since it parses flags.
167167
pytest tensor2tensor/rl/trainer_model_based_test.py
168168
set_status
169-
jupyter nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute tensor2tensor/notebooks/hello_t2t.ipynb
169+
fi
170+
171+
if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]] && [[ "$TF_VERSION" == "$TF_LATEST" ]]
172+
then
173+
jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 \
174+
--ExecutePreprocessor.timeout=600 --to notebook --execute \
175+
tensor2tensor/notebooks/hello_t2t.ipynb;
170176
set_status
171-
jupyter nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute tensor2tensor/notebooks/t2t_problem.ipynb;
177+
178+
jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 \
179+
--ExecutePreprocessor.timeout=600 --to notebook --execute \
180+
tensor2tensor/notebooks/t2t_problem.ipynb;
172181
set_status
173182
fi
174183

0 commit comments

Comments
 (0)