/jansmongodbkernel

A simple Jupyter kernel for mongodb.

Primary LanguageJupyter NotebookMIT LicenseMIT

jansmongodbkernel

alt

A mongodb kernel for jupyter. Created using IPython's kernel and pexpect's REPLWrapper subclasses. This relies on creating a custom prompt in mongosh like described here.

Dev Installation

  • install mongodb from your distro's package manager
  • download/clone this project
  • open shell in project folder
  • pip install -e ./
  • then install kernelspec (this will also add the custom prompt to your ~/.mongoshrc.js)
  • jansmongodbkernel

Uninstall

  • jupyter kernelspec uninstall jansmongodbkernel
  • pip uninstall jansmongodbkernel
  • remove the line prompt = function() {return \`mongosh>>> \`;} from ~/.mongoshrc.js