Skip to content

Commit f3aa05e

Browse files
authored
CI: Fix graphviz installation (#171)
* CI: fix graphviz * fix * fix * Add generated files to gitignore * re-order channels
1 parent b7b439d commit f3aa05e

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
python-version: "3.10"
1616
environment-file: environment.yml
1717
activate-environment: quantecon
18-
- name: Graphics Support
19-
run: |
20-
sudo apt-get -qq update && sudo apt-get install -y graphviz
18+
# - name: Graphics Support
19+
# run: |
20+
# sudo apt-get -qq update && sudo apt-get install -y graphviz
2121
# - name: Install latex dependencies
2222
# run: |
2323
# sudo apt-get -qq update
@@ -80,4 +80,4 @@ jobs:
8080
deploy-message: "Preview Deploy from GitHub Actions"
8181
env:
8282
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
83-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
83+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
lectures/_build
3-
*/.ipynb_checkpoints/
3+
*/.ipynb_checkpoints/
4+
_build/*

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: quantecon
22
channels:
33
- default
4+
- conda-forge
45
dependencies:
56
- python=3.10
67
- anaconda=2023.03
8+
- python-graphviz
79
- pip
810
- pip:
911
- jupyter-book==0.15.1
@@ -23,4 +25,3 @@ dependencies:
2325
# - cylp
2426
# - array-to-latex
2527
# - prettytable
26-

lectures/networks.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ kernelspec:
1313

1414
# Networks
1515

16+
```{admonition} graphviz
17+
:class: warning
18+
If you are running this lecture locally it requires [graphviz](https://www.graphviz.org)
19+
to be installed on your computer. Installation instructions for graphviz can be found
20+
[here](https://www.graphviz.org/download/)
21+
```
22+
1623
```{code-cell} ipython3
1724
:tags: [hide-output]
1825
19-
pip install quantecon-book-networks pandas-datareader
26+
!pip install quantecon graphviz
27+
!pip install quantecon-book-networks pandas-datareader
2028
```
2129

2230

0 commit comments

Comments
 (0)