Skip to content

Automatically cache results of intensive computations in IPython.

License

Notifications You must be signed in to change notification settings

kpj/ipy_pdcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

%%pdcache cell magic

pypi version Tests

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.

About

Automatically cache results of intensive computations in IPython.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages