/imongo

A MongoDB kernel for Jupyter

Primary LanguageJupyter NotebookMIT LicenseMIT

imongo

A MongoDB kernel for Jupyter Lab. Mainly for educational purposes.

This kernel wraps the Mongo shell using pexpect and leaves the heavy lifting to metakernel. It is heavily based on iMongo by Gustavo Bezerra.

TODO: Change to more metakernel infrastructure as https://github.com/Jaesin/psysh_kernel/blob/master/psysh_kernel/kernel.py doc; https://github.com/Calysto/metakernel/blob/master/metakernel/replwrap.py

IMongo in action

IMongo in action

How to install

Major requirements

IMongo requires Jupyter and MongoDB.

Install Jupyter and IMongo Kernel using pip

To install Jupyter, this IMongo Kernel and all other dependencies, use pip install:

$ git+https://github.com/boun/imongo#egg=imongo-kernel

TODO:

  • Implement code completion functionality
  • Fix long command issue
  • Send Mongo shell Javascript errors/exceptions to stderr

Acknowledgments:

A part of this work was supported by the European Social Fund

images/esf_logo.png
images/vhb_logo.png