Skip to content

Commit

Permalink
Fix ipython magic in examples (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv authored May 31, 2023
1 parent 71f4da9 commit 66262a4
Show file tree
Hide file tree
Showing 5 changed files with 3,121 additions and 2,934 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ jobs:
if: matrix.minimal
run: pip install -r requirements.min.txt
- name: Prepare examples dependencies
run: pip install catboost
run: pip install catboost sentence-transformers
- name: Export examples
run: jupyter nbconvert --to script examples/*/*.ipynb --output-dir example_scripts
run: jupyter nbconvert --to python examples/*/*.ipynb --output-dir example_scripts
- name: Download test data
run: curl https://archive.ics.uci.edu/ml/machine-learning-databases/00275/Bike-Sharing-Dataset.zip -o Bike-Sharing-Dataset.zip &&
unzip Bike-Sharing-Dataset.zip -d Bike-Sharing-Dataset
Expand Down
3 changes: 2 additions & 1 deletion example_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"bicycle_demand_monitoring_setup.py",
"how_to_run_drift_report_for_text_encoders.py",
"comparing_custom_statest_with_classic_distributions.py",
"how_to_run_drift_report_for_text_data.py" # too slow & torch version conflict?
]


Expand All @@ -20,7 +21,7 @@
if file.endswith(".py"):
if file in excludes:
continue
result = os.system(f"python example_scripts/{file}")
result = os.system(f"ipython example_scripts/{file}")
if result != 0:
failed_scripts.append((file, result))

Expand Down
Loading

0 comments on commit 66262a4

Please sign in to comment.