Skip to content

Commit 2b107cd

Browse files
authored
FIX: comment out pyo.init_notebook_mode to fix PDF build (#309)
pyo.init_notebook_mode(connected=True) outputs only text/html which the LaTeX builder cannot render. With -W (warnings-as-errors) this kills the PDF build. The lecture uses kaleido for static PNG export so this call is not needed for the book build. Closes #308
1 parent 98e5292 commit 2b107cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lectures/knowing_forecasts_of_others.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@ import plotly.offline as pyo
921921
from statsmodels.regression.linear_model import OLS
922922
from IPython.display import display, Latex, Image
923923
924-
pyo.init_notebook_mode(connected=True)
924+
# Uncomment the following line when running in a notebook
925+
# pyo.init_notebook_mode(connected=True)
925926
```
926927

927928
```{code-cell} python3

0 commit comments

Comments
 (0)