I'm a newbie to zipline and I'm trying to
reproduce this example loosely. It calls for
modifying a file .zipline/extension.py
. Fat luck,
I do not have this file.
Now, I can do (from inside the virtualenv
):
(Mony_games) me@me-ThinkPad-T470p:~/$ ipython
import zipline
zipline.utils.paths.default_extension()
But this points to
'/home/me/.zipline/extension.py'
which doesn't exist. Do I have to create it? If so, where: I'm a bit confused because I'm using a virtualenv
, so:
import inspect
inspect.getfile(zipline)
'/home/me/virtualenvs/Mony_games/lib/python3.5/site-packages/zipline/__init__.py'
it's okay. virtualenv or not, this file should be where
import zipline
zipline.utils.paths.default_extension()
points to, which in my case is:
'/home/me/.zipline/extension.py'