nrob
nrob

Reputation: 889

can I specify the ipython store magic path

Is it possible to specify which directory the %store magic stores variables in? All my ipython config files are in ~/.config. However, my home directory is size limited by my employers and I'd like to dump ipython variables to my local storage folder.

Also, is it possible to dump everthing from this session using %store?

Thanks

Niall

Upvotes: 0

Views: 794

Answers (1)

Thomas K
Thomas K

Reputation: 40370

You can set the location of your whole IPython config directory with the IPYTHONDIR environment variable. I don't think there's currently any way of setting the %store database location separately.

No, %store doesn't have a mode to dump all the variables in your session. If you want to do that, you could take a look at dill: https://pypi.python.org/pypi/dill

Upvotes: 1

Related Questions