Skip to main content

A Postgres-backed ContentsManager for IPython/Jupyter.

Project description

PGContents is a PostgreSQL-backed implementation of IPEP 27. It aims to a be a transparent, drop-in replacement for IPython’s standard filesystem-backed storage system. PGContents’ PostgresContentsManager class can be used to replace all local filesystem storage with database-backed storage, while its PostgresCheckpoints class can be used to replace just IPython’s checkpoint storage. These features are useful when running IPython in environments where you either don’t have access to—or don’t trust the reliability of—the local filesystem of your notebook server.

This repository is under development as part of the Quantopian Research Environment, currently in Open Beta.

Getting Started



  1. Install pgcontents from PyPI via pip install pgcontents.
  2. Run pgcontents init to configure your database. You will be prompted for a database URL for pgcontents to use for storage.
  3. Configure IPython/Jupyter to use pgcontents as its storage backend. This can be done from the command line or by modifying your notebook config file. For IPython 3.x on a Unix-like system, your notebok config will be located located at ~/.ipython/profile_default/ For Jupyter Notebook, it will will be located at ~/.jupyter/ See the examples directory for example configuration files.
  4. Enjoy your filesystem-free IPython experience!

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pgcontents, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pgcontents-0.3.0.tar.gz (35.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page