Skip to content

Commit 995110d

Browse files
Add draw_tree visuals to tutorials 2&3 (#661)
* Add texlive-full to apt_packages in Read the Docs configuration * Add draw-tree dependency to requirements for tutorials * Add Jupyter notebook checkpoints to .gitignore * ignore .ef files generated by draw_tree in tutorials * add draw_tree to extensive form tutorial * update extensive form notebook to save tree image to file with draw_tree * add draw_tree to stripped down poker tutorial * rerun notebooks after reducing draw_tree scale factor * skip tests tutorial tests if draw_tree is not installed * windows action installs everything except open_spiel * replace linux action python versions from 3.9 to 3.10 * Revert "skip tests tutorial tests if draw_tree is not installed" This reverts commit e3c58d6. * add flag for running tutorials with pytest * add flag to run tutorials with pytest in CI workflows * update python.yml from #661 * ingore open_spiel on windows * add conftest.py from #661 * Add pytest marker for tutorial notebooks in test_execute_notebook * Update Python version in CI workflow from. 3.13 to 3.14 * Don't skip tutorial tests if that file is explicitly run * exclude tutorials from pytest for specifically macos13 with python 3.14 since open_spiel does not build correctly * Add instructions for running tutorial notebook tests with pytest * Update Python version requirement from >=3.9 to >=3.10 in pyproject.toml * Add Python 3.14 to the list of supported programming languages in classifiers * fix merge mistake * force readthedocs to reinstall draw-tree from latest main branch since this is in active development * Update Python version in ReadTheDocs configuration to 3.14 * try again with force reinstall of draw_tree * revert superfluous changes * remobe draw_tree force install which didn't work as expected * try specifying draw_tree version * fix: correct draw_tree naming in requirements.txt and specify version * Revert "fix: correct draw_tree naming in requirements.txt and specify version" This reverts commit 8b9307f. * set draw_tree version to 0.2.0 which is an actual release * resave notebook outputs
1 parent 46121fc commit 995110d

5 files changed

Lines changed: 2214 additions & 121 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ Gambit.app/*
4343
*.so
4444
doc/tutorials/games/*.nfg
4545
doc/tutorials/games/*.efg
46+
doc/tutorials/*.png
4647
*.dmg
4748
Gambit.app/*
49+
*.ipynb_checkpoints
50+
*.ef

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ build:
1212
apt_packages:
1313
- libgmp-dev
1414
- pandoc
15+
- texlive-full
1516

1617
python:
1718
install:

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ matplotlib
1010
pickleshare
1111
jupyter
1212
open_spiel; sys_platform != 'win32'
13+
draw-tree @ git+https://github.com/gambitproject/draw_tree.git@v0.2.0

0 commit comments

Comments
 (0)