Skip to main content

Automatically cache results of intensive computations in IPython.

Project description

%%pdcache cell magic

pypi version license

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.

%load_ext ipy_pdcache import pandas as pd

%%pdcache df data.csv print('hu') df = pd.DataFrame({'A': [1,2,3], 'B': [4,5,6]}) print('ha') 1

Dev:

Testing:

Misc:

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.0.5.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipy_pdcache-0.0.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipy_pdcache-0.0.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.4 Darwin/18.7.0

File hashes

Hashes for ipy_pdcache-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6e46b0e154829abcfa3ddaf21e80e48b6500623a6d036f2fb8a775b3674098b0
MD5 57eb4fa3c1f2644baecf52e9c8bd8a9e
BLAKE2b-256 cb0a8fa78d093a59cd920abfa9bb31bfd1d8adfb07bc81c548facec24ef85e81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipy_pdcache-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.4 Darwin/18.7.0

File hashes

Hashes for ipy_pdcache-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aca97018d35b44f3f68b9b5f818c934d8c8b23c17c9d8b8ae65d95b0bec0d95b
MD5 4e84394af987778bcd8e0542dc136c05
BLAKE2b-256 d1fd9f127ff9f0df9b2dea33a577b490095010e0ce955546904f9352e3e5e619

See more details on using hashes here.

Supported by

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