gusutabopb / imongo Goto Github PK
View Code? Open in Web Editor NEWA MongoDB kernel for Jupyter
License: MIT License
A MongoDB kernel for Jupyter
License: MIT License
Add support to tab-completion of Mongo shell commands. The Mongo shell offers such functionality already, so it just have to be properly wrapped to work on Jupyter.
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.5/dist-packages/imongo/main.py", line 2, in
from .kernel import MongoKernel
File "/usr/local/lib/python3.5/dist-packages/imongo/kernel.py", line 165
spawn_cmd = ['mongo', f'--eval "{prompt_cmd}; {dir_func}"']
^
SyntaxError: invalid syntax
IMongo currently doesn't work properly on Jupyter Lab.
Currently, the kernel show up on Jupyter Lab interface and starts, but nothing is displayed when executing Mongo shell commands.
Also, it seems a Jupyter Lab extension would be necessary to make the collapsable pretty printing viewing functionality (currently implemented through third-party JS library) available.
Hi Gustavo,
Thanks for your imongo. It is very useful! However, I always get the following message:
Code too long. Please commands with less than 1024 effective chracters. Indentation spaces/tabs don't count towards "effective" characters.
Restarting mongo shell...
I wonder if this is due to that long code is not supported by imongo and how to deal with it?
Thanks for your help and best!
Jeff
//ここでコードを書いたり、セルを追加したりしてください
db.tweets.find({'hashtags': {$not: {$eq: []}}})
db.tweets.find({'hashtags': {$not: {$eq: []}}})
Hi!
I've been trying to install imongo-kernel and while the pip install is successful, it does not seem to install the kernel into jupyter.
The jupyter kernelspec list
command does not return imongo among the installed kernels.
I've tried the installation on both Windows and Mac.
Environment:
Python3 3.6.2 (Mac) and 3.6.1 (Win) and Jupyter is version 4.3.0
Any idea of what might be going on? Is there anything else I could do to troubleshoot this?
I appreciate any help you can provide.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.