Giter VIP home page Giter VIP logo

imongo's People

Contributors

gusutabopb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

imongo's Issues

Implement code completion functionality

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.

Invalid syntax issue

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

Add Jupyter Lab support

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.

Long code support

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: []}}})

Kernel not Installing

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.