A MongoDB kernel for Jupyter
A MongoDB kernel for Jupyter. Mainly for educational purposes.
IMongo in action
How to install
On macOS, use Homebrew: brew install mongodb
For other platforms, please refer to the MongoDB documentation
Install Jupyter and IMongo Kernel using pip
To install Jupyter, IMongo and all other dependencies, use pip install:
$ pip install imongo-kernel
Install Jupyter and IMongo Kernel using conda
$ conda create -n imongo jupyter "python>3.6" $ source activate imongo $ pip install imongo-kernel
Both methods install the imongo package and configure Jupyter to be used with the new kernel by installing a kernel spec.
MongoDB configuration such as host/port can be passed as a YAML file, located at the Jupyter configuration directory. The default path for UNIX systems is ~/.jupyter/imongo_config.yml. The options available are the same as the ones available for the mongo CLI tool. This configuration is necessary in case your MongoDB instance has authentication enabled, runs at a non-standard port, or runs on a remote (non-localhost) location.
host: some.host.io port: 27017 username: username password: password authenticationDatabase: admin quiet: null
If imongo_config.yml doesn’t exist or is empty, IMongo will attempt to connect to the MongoDB instance at localhost:27017, without any user authentication.
# Remove library: $ pip uninstall imongo # Remove kernel spec $ jupyter kernelspec remove imongo
- Implement code completion functionality
- Fix long command issue
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size imongo_kernel-0.1.0-py3-none-any.whl (11.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size imongo-kernel-0.1.0.tar.gz (8.6 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for imongo_kernel-0.1.0-py3-none-any.whl