Skip to content

CI: Fix graphviz installation #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
python-version: "3.10"
environment-file: environment.yml
activate-environment: quantecon
- name: Graphics Support
run: |
sudo apt-get -qq update && sudo apt-get install -y graphviz
# - name: Graphics Support
# run: |
# sudo apt-get -qq update && sudo apt-get install -y graphviz
# - name: Install latex dependencies
# run: |
# sudo apt-get -qq update
Expand Down Expand Up @@ -80,4 +80,4 @@ jobs:
deploy-message: "Preview Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
lectures/_build
*/.ipynb_checkpoints/
*/.ipynb_checkpoints/
_build/*
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: quantecon
channels:
- default
- conda-forge
dependencies:
- python=3.10
- anaconda=2023.03
- python-graphviz
- pip
- pip:
- jupyter-book==0.15.1
Expand All @@ -23,4 +25,3 @@ dependencies:
# - cylp
# - array-to-latex
# - prettytable

10 changes: 9 additions & 1 deletion lectures/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ kernelspec:

# Networks

```{admonition} graphviz
:class: warning
If you are running this lecture locally it requires [graphviz](https://www.graphviz.org)
to be installed on your computer. Installation instructions for graphviz can be found
[here](https://www.graphviz.org/download/)
```

```{code-cell} ipython3
:tags: [hide-output]

pip install quantecon-book-networks pandas-datareader
!pip install quantecon graphviz
!pip install quantecon-book-networks pandas-datareader
```


Expand Down