Skip to main content

A content manager for IPython with MongoDB as the backend.

Project description

IPython Notebook Manager in MongoDB

Setting up

First, run

pip install MongoNotebookManager

Then, when you start ipython notebook, make sure you have the following config settings in place. This module will save your notebooks and checkpoints to mongodb, and supports an unlimited number of checkpoints.

required

c.NotebookApp.contents_manager_class='mongo_notebook_manager.MongoContentsManager'

optional

Below are the arguments, with their default values

mongo_uri

c.NotebookApp.MongoContentsManager.mongo_uri='mongodb://localhost:27017/'

replica_set

c.NotebookApp.replica_set=''

database_name

c.NotebookApp.database_name='ipython'

Database username

c.NotebookApp.MongoContentsManager.mongo_username = 'my_container'

Database password

c.NotebookApp.MongoContentsManager.mongo_password = '12345'

notebook_collection

c.NotebookApp.notebook_collection='notebooks'

checkpoint_collection

c.NotebookApp.checkpoint_collection='checkpoints'

checkpoints_history

c.NotebookApp.checkpoints_history=False

Why did I build this?

I was setting up IPython Notebook on heroku, and ran into the problem where heroku will remove the extra files after a while. Having used mongodb quite thoroughly before, and knowing the existence of the free mongodb host (up to 500mb, which I believe is more than enough for most users of IPython Notebook), mongolab, I decided to write a module that will enable persistence of the notebooks on heroku, hence this plugin.

Bugs?

This is still in Alpha stage, although most of the basic features are working. If you do find any bugs, please report issues to the repo on Github.

Features?

If there are additional features that you are looking for, please create an issue over at our repo on Github, and we’ll prioritize and get working on it.

Pull requests?

If you wish to make things better, or fix one of the issues(bug/feature), please submit a pull request. However, please follow the AngularJS commit message guideline for your commit messages.

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

MongoContentManager-1.0.0.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file MongoContentManager-1.0.0.tar.gz.

File metadata

File hashes

Hashes for MongoContentManager-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ea14a6ba68fac93d894cd40ba123f900de2f54e2ac3ceb13f665df133b69264f
MD5 7b20c03453df11b37a772269cbe33f07
BLAKE2b-256 8c34c0db9c859fa5cc41c8fc6e5259308fa162f2255ae19c0aa42174406b2aab

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