Reputation: 24806
The storemagic documentation says that:
Stores variables, aliases and macros in IPython’s database.
but it does not say where is this IPython's database located. Where is it?
Upvotes: 0
Views: 13
Reputation: 24806
It's usually at ${IPYTHONDIR}/profile_default/db
As indicated in these docs, you can find the IPYTHONDIR
with:
import IPython
print(IPython.paths.get_ipython_dir()) # i.e /home/ec2-user/.ipython
then you can list all the files in that IPYTHONDIR
with
find /home/ec2-user/.ipython -type f
...
/home/ec2-user/.ipython/profile_default/db/autorestore/outputs
/home/ec2-user/.ipython/profile_default/db/autorestore/bucket
/home/ec2-user/.ipython/profile_default/db/autorestore/aos_host
...
In the above case, there were 3 variables stored outputs
, bucket
and aos_host
that were the result of executing
%store outputs
%store bucket
%store aos_host
Stored 'outputs' (dict)
Stored 'bucket' (str)
Stored 'aos_host' (str)
Upvotes: 0