Skip to content

Commit

Permalink
Merge pull request #7 from QuantEcon/review-matplotlib
Browse files Browse the repository at this point in the history
MAINT: remove %matplotlib inline and contents directive
  • Loading branch information
mmcky committed Jun 13, 2024
2 parents db9b1dd + 5ee6811 commit ab8c789
Show file tree
Hide file tree
Showing 28 changed files with 0 additions and 117 deletions.
5 changes: 0 additions & 5 deletions lectures/BCG_complete_mkts.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# Irrelevance of Capital Structures with Complete Markets

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down Expand Up @@ -873,7 +869,6 @@ import matplotlib.pyplot as plt
from scipy.stats import norm
from numba import njit, prange
from quantecon.optimize import root_finding
%matplotlib inline
```

```{code-cell} python3
Expand Down
4 changes: 0 additions & 4 deletions lectures/BCG_incomplete_mkts.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# Equilibrium Capital Structures with Incomplete Markets

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
5 changes: 0 additions & 5 deletions lectures/asset_pricing_lph.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ kernelspec:
```{index} single: Elementary Asset Pricing
```

```{contents} Contents
:depth: 2
```

## Overview

This lecture is about some implications of asset-pricing theories that are based on the equation
Expand Down Expand Up @@ -356,7 +352,6 @@ In drawing a frontier, we'll set $\sigma(m) = .25$ and $E m = .99$, values rough
```{code-cell} ipython3
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
# Define the function to plot
def y(x, alpha, beta):
Expand Down
7 changes: 0 additions & 7 deletions lectures/black_litterman.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:

# Two Modifications of Mean-Variance Portfolio Theory

```{contents} Contents
:depth: 2
```

## Overview

This lecture describes extensions to the classical mean-variance portfolio theory summarized in our lecture [Elementary Asset Pricing Theory](https://python-advanced.quantecon.org/asset_pricing_lph.html).
Expand Down Expand Up @@ -87,12 +83,9 @@ Let's start with some imports:
import numpy as np
import scipy.stats as stat
import matplotlib.pyplot as plt
%matplotlib inline
from ipywidgets import interact, FloatSlider
```



## Mean-Variance Portfolio Choice

A risk-free security earns one-period net return $r_f$.
Expand Down
4 changes: 0 additions & 4 deletions lectures/cake_eating_numerical.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ kernelspec:

# Cake Eating II: Numerical Methods

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will require the following library:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/cake_eating_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ kernelspec:

# Cake Eating I: Introduction to Optimal Saving

```{contents} Contents
:depth: 2
```

## Overview

In this lecture we introduce a simple "cake eating" problem.
Expand Down
4 changes: 0 additions & 4 deletions lectures/career.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: Modeling; Career Choice
```

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/coleman_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# {index}`Optimal Growth III: Time Iteration <single: Optimal Growth III: Time Iteration>`

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/harrison_kreps.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: Models; Harrison Kreps
```

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture uses following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/ifp.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# {index}`The Income Fluctuation Problem I: Basic Model <single: The Income Fluctuation Problem I: Basic Model>`

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/ifp_advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# {index}`The Income Fluctuation Problem II: Stochastic Returns on Assets <single: The Income Fluctuation Problem II: Stochastic Returns on Assets>`

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/inventory_dynamics.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ kernelspec:
```{index} single: Markov process, inventory
```

```{contents} Contents
:depth: 2
```

## Overview

In this lecture we will study the time path of inventories for firms that
Expand Down
4 changes: 0 additions & 4 deletions lectures/jv.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: Models; On-the-Job Search
```

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/kesten_processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ kernelspec:
```{index} single: Linear State Space Models
```

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/lake_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: Lake Model
```

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/markov_asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: Models; Markov Asset Pricing
```

```{contents} Contents
:depth: 2
```

```{epigraph}
"A little knowledge of geometric series goes a long way" -- Robert E. Lucas, Jr.
```
Expand Down
4 changes: 0 additions & 4 deletions lectures/mccall_correlated.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# Job Search IV: Correlated Wage Offers

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/mccall_fitted_vfi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# Job Search III: Fitted Value Function Iteration

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/mccall_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# Job Search I: The McCall Search Model

```{contents} Contents
:depth: 2
```

```{epigraph}
"Questioning a McCall worker is like having a conversation with an out-of-work friend:
'Maybe you are setting your sights too high', or 'Why did you quit your old job before you
Expand Down
4 changes: 0 additions & 4 deletions lectures/mccall_model_with_separation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: An Introduction to Job Search
```

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/odu.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# Job Search VII: Search with Learning

```{contents} Contents
:depth: 2
```

In addition to what’s in Anaconda, this lecture deploys the libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/optgrowth.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# {index}`Optimal Growth I: The Stochastic Optimal Growth Model <single: Optimal Growth I: The Stochastic Optimal Growth Model>`

```{contents} Contents
:depth: 2
```

## Overview

In this lecture, we're going to study a simple optimal growth model with one
Expand Down
4 changes: 0 additions & 4 deletions lectures/optgrowth_fast.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# {index}`Optimal Growth II: Accelerating the Code with Numba <single: Optimal Growth II: Accelerating the Code with Numba>`

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/orth_proj.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ kernelspec:
```{index} single: Orthogonal Projection
```

```{contents} Contents
:depth: 2
```

## Overview

Orthogonal projection is a cornerstone of vector space methods, with many diverse applications.
Expand Down
4 changes: 0 additions & 4 deletions lectures/samuelson.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# Samuelson Multiplier-Accelerator

```{contents} Contents
:depth: 2
```

In addition to what's in Anaconda, this lecture will need the following libraries:

```{code-cell} ipython
Expand Down
4 changes: 0 additions & 4 deletions lectures/sir_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# {index}`Modeling COVID 19 <single: Modeling COVID 19>`

```{contents} Contents
:depth: 2
```

## Overview

This is a Python version of the code for analyzing the COVID-19 pandemic
Expand Down
4 changes: 0 additions & 4 deletions lectures/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ kernelspec:

# Troubleshooting

```{contents} Contents
:depth: 2
```

This page is for readers experiencing errors when running the code from the lectures.

## Fixing Your Local Environment
Expand Down
4 changes: 0 additions & 4 deletions lectures/wealth_dynamics.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kernelspec:

# Wealth Distribution Dynamics

```{contents} Contents
:depth: 2
```

```{seealso}
A [version of this lecture](https://jax.quantecon.org/wealth_dynamics.html) using a `GPU`
is [available here](https://jax.quantecon.org/wealth_dynamics.html)
Expand Down

0 comments on commit ab8c789

Please sign in to comment.