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

Commit

Permalink
Execute jupyter nbconvert on python3 instead of python2.
Browse files Browse the repository at this point in the history
python2 fails with:
`RuntimeError: Kernel died before replying to kernel_info`

python3 seems to pass.

PiperOrigin-RevId: 272718077
  • Loading branch information
afrozenator authored and copybara-github committed Oct 3, 2019
1 parent 176148c commit 232225f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions oss_scripts/oss_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,18 @@ then
# Can't add disable warning here since it parses flags.
pytest tensor2tensor/rl/trainer_model_based_test.py
set_status
jupyter nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute tensor2tensor/notebooks/hello_t2t.ipynb
fi

if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]] && [[ "$TF_VERSION" == "$TF_LATEST" ]]
then
jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=600 --to notebook --execute \
tensor2tensor/notebooks/hello_t2t.ipynb;
set_status
jupyter nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute tensor2tensor/notebooks/t2t_problem.ipynb;

jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 \
--ExecutePreprocessor.timeout=600 --to notebook --execute \
tensor2tensor/notebooks/t2t_problem.ipynb;
set_status
fi

Expand Down

0 comments on commit 232225f

Please sign in to comment.