mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 03:23:27 +08:00
f5086e4b0e
When zipline is imported it checks whether it runs in the IPython notebook. If it does, it registers a %%zipline magic that takes the same arguments as the CLI with the addition of a -o for specifying the output variable to store the performance frame in. The algo code in the cell is, as of yet, executed in its own environment rather than that of the IPython NB which is probably what we want. Also adds cli option to save the perf dataframe to a pickle file. Also adds an IPython notebook buyapple example.