{"id":14008674,"url":"https://github.com/gusutabopb/imongo","last_synced_at":"2025-10-03T22:30:28.874Z","repository":{"id":51317994,"uuid":"74086229","full_name":"gusutabopb/imongo","owner":"gusutabopb","description":"A MongoDB kernel for Jupyter","archived":true,"fork":false,"pushed_at":"2021-05-15T19:43:56.000Z","size":293,"stargazers_count":54,"open_issues_count":8,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-18T07:40:28.482Z","etag":null,"topics":["educational","ipython","jupyter","jupyter-kernels","kernel","mongodb","mongodb-kernel"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gusutabopb.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T02:10:15.000Z","updated_at":"2024-11-10T21:18:05.000Z","dependencies_parsed_at":"2022-09-11T21:30:23.974Z","dependency_job_id":null,"html_url":"https://github.com/gusutabopb/imongo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusutabopb%2Fimongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusutabopb%2Fimongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusutabopb%2Fimongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gusutabopb%2Fimongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gusutabopb","download_url":"https://codeload.github.com/gusutabopb/imongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235198375,"owners_count":18951496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["educational","ipython","jupyter","jupyter-kernels","kernel","mongodb","mongodb-kernel"],"created_at":"2024-08-10T11:01:59.842Z","updated_at":"2025-10-03T22:30:28.483Z","avatar_url":"https://github.com/gusutabopb.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"imongo\n======\n\nA MongoDB kernel for Jupyter. Mainly for educational purposes.\n\nThis kernel wraps the Mongo shell using pexpect_ and was inspired by\n`bash_kernel`_ and `ipython_mysql_kernel`_.\nIt uses Renderjson_ for JSON pretty-printing.\n\n.. _pexpect: https://github.com/pexpect/pexpect\n.. _`bash_kernel`: https://github.com/takluyver/bash_kernel\n.. _`ipython_mysql_kernel`: https://github.com/mmisono/ipython_mysql_kernel\n.. _Renderjson: https://github.com/caldwell/renderjson\n\n\n.. figure:: screenshot.png\n   :alt: IMongo in action\n\n   IMongo in action\n\nHow to install\n--------------\n\nMajor requirements\n~~~~~~~~~~~~~~~~~~\n\nIMongo requires Jupyter_ and MongoDB_.\n\n.. _Jupyter: http://jupyter.org\n.. _MongoDB: https://www.mongodb.com\n\nInstall MongoDB\n^^^^^^^^^^^^^^^\n\nOn macOS, use Homebrew_: ``brew install mongodb``\n\nFor other platforms, please refer to the MongoDB documentation_\n\n.. _Homebrew: http://brew.sh/\n.. _documentation: https://docs.mongodb.com/manual/installation/\n\nInstall Jupyter and IMongo Kernel using ``pip``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nTo install Jupyter, IMongo and all other dependencies, use ``pip install``:\n\n.. code:: bash\n\n    $ pip install imongo-kernel\n\nInstall Jupyter and IMongo Kernel using ``conda``\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nAlthough the installation with ``pip`` works fine , we recommend using the\n``conda`` package manager to create a virtual environment. You need to have\neither Anaconda_ or Miniconda_ installed.\n\n.. code:: bash\n\n    $ conda create -n imongo jupyter \"python\u003e3.6\"\n    $ source activate imongo\n    $ pip install imongo-kernel\n\nBoth methods install the ``imongo`` package and configure Jupyter to be\nused with the new kernel by installing a `kernel spec`_.\n\n.. _Anaconda: https://www.anaconda.com/download\n.. _Miniconda: https://conda.io/miniconda.html\n.. _`kernel spec`: https://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs\n\n\nConfiguration (optional)\n^^^^^^^^^^^^^^^^^^^^^^^^\nMongoDB configuration such as host/port can be passed as a YAML file,\nlocated at the Jupyter `configuration directory`_.\nThe default path for UNIX systems is ``~/.jupyter/imongo_config.yml``.\nThe options available are the same as the ones available for the |mongo|_ CLI tool.\nThis configuration is necessary in case your MongoDB instance has authentication enabled,\nruns at a non-standard port, or runs on a remote (non-localhost) location.\n\n.. _`configuration directory`: http://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html#configuration-files\n.. |mongo| replace:: ``mongo``\n.. _mongo: https://docs.mongodb.com/manual/reference/program/mongo\n\nSample ``imongo_config.yml``:\n\n.. code:: yaml\n\n    host: some.host.io\n    port: 27017\n    username: username\n    password: password\n    authenticationDatabase: admin\n    quiet: null\n\nIf ``imongo_config.yml`` doesn't exist or is empty, IMongo will attempt\nto connect to the MongoDB instance at ``localhost:27017``, without any\nuser authentication.\n\nUninstall:\n----------\n\n.. code:: bash\n\n    # Remove library: \n    $ pip uninstall imongo\n    # Remove kernel spec\n    $ jupyter kernelspec remove imongo\n\n--------------\n\nTODO:\n-----\n\n-  Implement code completion functionality\n-  Fix long command issue\n-  Send Mongo shell Javascript errors/exceptions to stderr\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusutabopb%2Fimongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusutabopb%2Fimongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusutabopb%2Fimongo/lists"}