Skip to content

Commit

Permalink
ENH: Improve compatibility with Google Colab (#236)
Browse files Browse the repository at this point in the history
* ENH: Improve compatibility with Google Colab

* TMP: remove cache

* Revert "TMP: remove cache"

This reverts commit 18ceaca.

* add notice for Google Colab users for plotly
  • Loading branch information
mmcky authored Jun 26, 2022
1 parent 4d5d1f0 commit 80ef919
Show file tree
Hide file tree
Showing 33 changed files with 39 additions and 33 deletions.
2 changes: 1 addition & 1 deletion lectures/aiyagari.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
7 changes: 7 additions & 0 deletions lectures/back_prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ kernelspec:
!conda install -y -c plotly plotly plotly-orca retrying
```

```{note}
If you are running this on Google Colab the above cell will
present an error. This is because Google Colab doesn't use Anaconda to manage
the Python packages. However this lecture will still execute as Google Colab
has `plotly` installed.
```

## Overview

Substantial parts of **machine learning** and **artificial intelligence** are about
Expand Down
2 changes: 1 addition & 1 deletion lectures/career.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/coleman_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/egm_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/finite_markov.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/harrison_kreps.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture uses following libraries:
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/heavy_tails.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install --upgrade yfinance
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/ifp.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/ifp_advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/jv.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/kalman.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/kesten_processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install --upgrade yfinance
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/lake_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/linear_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/lq_inventories.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to what's in Anaconda, this lecture employs the following library:
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/lqcontrol.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/markov_asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/markov_perf.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/mccall_correlated.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/mccall_fitted_vfi.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/mccall_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/mccall_model_with_separation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
3 changes: 1 addition & 2 deletions lectures/navy_captain.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!conda install -y -c conda-forge interpolation
!pip install quantecon interpolation
```

```{code-cell} ipython
Expand Down
2 changes: 1 addition & 1 deletion lectures/odu.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture deploys the libraries:
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/optgrowth_fast.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/perm_income.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/perm_income_cons.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/rational_expectations.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/re_with_feedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ In addition to what's in Anaconda, this lecture deploys the following libraries:
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

```{code-cell} ipython
Expand Down
2 changes: 1 addition & 1 deletion lectures/samuelson.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down
2 changes: 1 addition & 1 deletion lectures/wald_friedman.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
```{code-cell} ipython3
:tags: [hide-output]
!conda install -y quantecon
!pip install quantecon
!pip install interpolation
```

Expand Down
2 changes: 1 addition & 1 deletion lectures/wealth_dynamics.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
---
tags: [hide-output]
---
!conda install -y quantecon
!pip install quantecon
```

## Overview
Expand Down

0 comments on commit 80ef919

Please sign in to comment.