Skip to main content

Automatically cache results of intensive computations in IPython.

Project description

%%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.

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 details)

Uploaded Source

Built Distribution

ipy_pdcache-0.1.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file ipy_pdcache-0.1.0.tar.gz.

File metadata

  • Download URL: ipy_pdcache-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for ipy_pdcache-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5bc5edb38cc4d8ba9c77b1c1616d30c72e5f1fd251d3cada7443f7d67574a37
MD5 4c6eac5389542614bed98e249aa64d60
BLAKE2b-256 194b03e70f32226d1e177092c2d86addec5abc9b8a7dabe340965b8f884c01bc

See more details on using hashes here.

File details

Details for the file ipy_pdcache-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipy_pdcache-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for ipy_pdcache-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 caee4ae1a5d4323410b49e68c1c6c65c43395d19db812e85f2866500ce096f3d
MD5 ff7135acbb337726d07f8e11c248baf5
BLAKE2b-256 94490664d3b5b39ef41431a770e6d450b1653336b024fa2dec60b3c479870b90

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page