Skip to content

Commit

Permalink
Disable jax_function notebook conversions for unsupported Python3.8 (#…
Browse files Browse the repository at this point in the history
…5432)

Signed-off-by: Kamil Tokarski <[email protected]>
  • Loading branch information
stiepan committed Apr 18, 2024
1 parent 2bfb162 commit 4260a11
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion qa/TL0_jupyter/test_jax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ target_dir=./docs/examples
test_body() {
test_files=(
"frameworks/jax/jax-basic_example.ipynb"
"custom_operations/jax_operator_basic.ipynb"
)

# JAX no longer releases for Python3.8, the last available version
# does not support newer dlpack protocol we use for jax_function
PY_VERSION=$(python -c "import sys; print(\"{}.{}\".format(sys.version_info[0],sys.version_info[1]))")
PY_VERSION_SHORT=${PY_VERSION/\./}
if [ "$PY_VERSION_SHORT" -ge 39 ]; then
test_files+=( "custom_operations/jax_operator_basic.ipynb" )
fi

for f in ${test_files[@]}; do
jupyter nbconvert --to notebook --inplace --execute \
--ExecutePreprocessor.kernel_name=python${PYVER:0:1} \
Expand Down

0 comments on commit 4260a11

Please sign in to comment.