davebshow / ipython-gremlin Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://ipython-gremlin.readthedocs.org/en/latest/
License: MIT License
Home Page: http://ipython-gremlin.readthedocs.org/en/latest/
License: MIT License
Hey,
gremlinpython
works well with this Gremlins version however I got issues with your package(ipython-gremlin==1.0.0
). The following code does not return :
In [1]: %load_ext gremlin
In [2]: %gremlin.connection.set_current ws://gremlins:8182/gremlin
Alias-- gremlins --created for database at ws://gremlins:8182/gremlin
Now using connection at ws://gremlins:8182/gremlin
In [3]: %gremlin g.V() <====== Stuck here
Here is what I can see in the gremlins server logs https://pastebin.com/raw/MQfxGpN0
The same code with gremlinpython
does the job :
In [1]: from gremlin_python import statics
...: from gremlin_python.structure.graph import Graph
...: from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
...: statics.load_statics(globals())
...: graph = Graph()
...: g = graph.traversal().withRemote(DriverRemoteConnection('ws://gremlins:8182/gremlin','g'))
In [2]: g.V().toList()
Out[2]: []
Hi
I am new to gremlin and this jupyter plugin looked ideal as a platform for learn about it. However, when I try to run the example notebook I get the following error:
The [eval] message contains 20 bindings which is more than is allowed by the server 16 configuration
Any idea what is going on?
Thanks
Richard
I get this error when trying to execute this line:
%reload_ext gremlin
%matplotlib inline
File "/Users/s/anaconda3/envs/py37/lib/python3.7/site-packages/aiohttp/helpers.py", line 30
ensure_future = asyncio.async
^
SyntaxError: invalid syntax
I am on python 3.7.4 and jupyter==1.0.0
This lib enforces PyYAML 3.12 (current: 5.3.1) and ipython 5.3.0 (current 7.16.1). Please update ๐
How can i connect to a remote server?
pls help
Hello,
I may be missing something here - but there seems to be an issue with https://github.com/davebshow/ipython-gremlin/blob/master/gremlin/resultset.py#L169 and the current version of networkx. I get the following error message:
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipython_gremlin-1.0.0-py3.5.egg/gremlin/resultset.py in _add_vertex(self, v)
167
168 def _add_vertex(self, v):
--> 169 self._graph.add_node(v.id, {'label': v.label})
170
171 def _add_edge(self, e):
TypeError: add_node() takes 2 positional arguments but 3 were given
Changing it to the following seems to resolve the error:
self._graph.add_node(v.id, label=v.label)
I get the following error when I try to get all edges :
https://pastebin.com/raw/sPDGi1UR
No issues, when I get vertices.
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.