• Stars
    star
    149
  • Rank 240,660 (Top 5 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Postgres-backed ContentsManager implementation for Jupyter

PGContents

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 developed as part of the Quantopian Research Environment.

Getting Started

Prerequisites:

Installation:

  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. (Alternatively, you can set the PGCONTENTS_DB_URL environment variable, or pass --db-url on the command line).
  3. Configure Jupyter to use pgcontents as its storage backend. This can be done from the command line or by modifying your notebook config file. On a Unix-like system, your notebook config will be located at ~/.jupyter/jupyter_notebook_config.py. See the examples directory for example configuration files.
  4. Enjoy your filesystem-free Jupyter experience!

Demo Video

You can see a demo of PGContents in action in this presentation from JupyterCon 2017.

More Repositories

1

zipline

Zipline, a Pythonic Algorithmic Trading Library
Python
16,969
star
2

pyfolio

Portfolio and risk analytics in Python
Jupyter Notebook
5,379
star
3

alphalens

Performance analysis of predictive (alpha) stock factors
Jupyter Notebook
3,094
star
4

qgrid

An interactive grid for sorting, filtering, and editing DataFrames in Jupyter notebooks
Python
3,018
star
5

research_public

Quantitative research and educational materials
Jupyter Notebook
2,301
star
6

empyrical

Common financial risk and performance metrics. Used by zipline and pyfolio.
Python
1,210
star
7

trading_calendars

Calendars for various securities exchanges.
Python
602
star
8

qdb

Quantopian Remote Debugger for Python
Python
313
star
9

quantopian-algos

Library of algorithm scripts for Quantopian
Python
171
star
10

coal-mine

Coal Mine - Periodic task execution monitor
Python
110
star
11

bayesalpha

Bayesian models to compute performance and uncertainty of returns and alpha.
Python
100
star
12

algorithm-component-library

A collection of code snippets that can be constructed into larger trading algorithms.
Python
100
star
13

PenguinDome

Simple Linux Mobile Device Management
Python
87
star
14

libpy

Utilities for writing C++ extension modules.
C++
79
star
15

warp_prism

Quickly move data from postgres to numpy or pandas.
C
63
star
16

qgrid-notebooks

Notebooks which will provide a demo of Qgrid functionality
Jupyter Notebook
20
star
17

serializable-traitlets

JSON-Serializable IPython Traitlets
Python
13
star
18

metautils

Utilities for writing metaclasses.
Python
8
star
19

DockORM

An object-relational mapper for docker containers.
Python
8
star
20

quantopian-drafts

Drafts for new Quantopian features.
6
star
21

aqueduct-client

Python wrapper for Quantopian's Aqueduct API
Python
2
star
22

nose_xunit_gevent

Xunit for the nose_gevented_multiprocess plugin
Python
2
star
23

quantopian.github.io

CSS
1
star