File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55import os
66import subprocess
7+ import sys
78import tempfile
89
910import nbformat
1617 "DiCE_with_advanced_options.ipynb" , # requires tensorflow 1.x
1718 "DiCE_getting_started_feasible.ipynb" , # needs changes after latest refactor
1819 "Benchmarking_different_CF_explanation_methods.ipynb"
19- ]
20+ ]
21+ # notebooks that don't need to run on python 3.10
22+ torch_notebooks_not_3_10 = [
23+ "DiCE_getting_started.ipynb"
24+ ]
2025
2126# Adding the dice root folder to the python path so that jupyter notebooks
2227if 'PYTHONPATH' not in os .environ :
@@ -77,6 +82,11 @@ def _notebook_run(filepath):
7782 nb ,
7883 marks = [pytest .mark .skip , pytest .mark .advanced ],
7984 id = nb )
85+ elif sys .version >= (3 , 10 ) and nb in torch_notebooks_not_3_10 :
86+ param = pytest .param (
87+ nb ,
88+ marks = [pytest .mark .skip , pytest .mark .advanced ],
89+ id = nb )
8090 else :
8191 param = pytest .param (nb , id = nb )
8292 parameter_list .append (param )
You can’t perform that action at this time.
0 commit comments