The final code cell in the example notebook starts with the following code
import zipline
from zipline.api import (add_history,
history,
set_slippage,
slippage,
set_commission,
commission,
order_target_percent,
sid)
from zipline import TradingAlgorithm
which appears to be using an old version of zipline. Running the code produces the following error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-18-b571c36c1a72> in <module>()
1 import zipline
----> 2 from zipline.api import (add_history,
3 history,
4 set_slippage,
5 slippage,
ImportError: cannot import name add_history