Skip to content

Commit a80c4a1

Browse files
committed
hide yf.download output
1 parent a454f5d commit a80c4a1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lectures/heavy_tails.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.14.5
7+
jupytext_version: 1.16.1
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -169,7 +169,12 @@ This equates to daily returns if we set dividends aside.
169169
The code below produces the desired plot using Yahoo financial data via the `yfinance` library.
170170

171171
```{code-cell} ipython3
172-
s = yf.download('AMZN', '2015-1-1', '2022-7-1')['Adj Close']
172+
:tags: [hide-output]
173+
data = yf.download('AMZN', '2015-1-1', '2022-7-1')
174+
```
175+
176+
```{code-cell} ipython3
177+
s = data['Adj Close']
173178
r = s.pct_change()
174179
175180
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)