jans-code / jansmongodbkernel

A simple Jupyter kernel for mongodb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple Jupyter kernel for mongodb.

License:MIT License


Languages

Language:Jupyter Notebook 50.8%Language:Python 49.2%