Automatically cache results of intensive computations in IPython.
Project description
%%pdcache cell magic
Automatically cache results of intensive computations in IPython.
Inspired by ipycache.
Installation
$ pip install ipy-pdcache
Usage
In IPython:
In [1]: %load_ext ipy_pdcache
In [2]: import pandas as pd
In [3]: %%pdcache df data.csv
...: df = pd.DataFrame({'A': [1,2,3], 'B': [4,5,6]})
...:
In [4]: !cat data.csv
,A,B
0,1,4
1,2,5
2,3,6
This will cache the dataframe and automatically load it when re-executing the cell.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipy_pdcache-0.1.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for ipy_pdcache-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caee4ae1a5d4323410b49e68c1c6c65c43395d19db812e85f2866500ce096f3d |
|
MD5 | ff7135acbb337726d07f8e11c248baf5 |
|
BLAKE2b-256 | 94490664d3b5b39ef41431a770e6d450b1653336b024fa2dec60b3c479870b90 |