简体   繁体   English

在jupyter笔记本中的Gremlin-python

[英]Gremlin-python in jupyter notebook

I`m trying to use tinkerpop3.2.3 to conncet janusgraph0.1.1 on my centOS7, everything works fine in gremlin shell. 我试图使用tinkerpop3.2.3在我的centOS7上同步janusgraph0.1.1,一切都在gremlin shell中工作正常。 I tried to use gremlin-python3.2.3 in python shell, it also works well. 我尝试在python shell中使用gremlin-python3.2.3,它也运行良好。 But when I moved my codes to jupyter notebook, I got RuntimeError:IOLoop is already running when excuting 但是当我将我的代码移动到jupyter笔记本时,我得到了RuntimeError:IOLoop在排除时已经运行了

g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g')) g = graph.traversal()。withRemote(DriverRemoteConnection('ws:// localhost:8182 / gremlin','g'))

So, is that possible to make gremlinpython work in jupyter notebook? 那么,有可能让gremlinpython在jupyter笔记本中工作吗? I tried both python2.7 & python3.5 我试过python2.7和python3.5

The issue you are seeing is more at the Apache TinkerPop level. 您在Apache TinkerPop级别上看到的问题更多。 JanusGraph 0.1.1 ships with TinkerPop 3.2.3, and the error you are seeing was resolved with TinkerPop 3.2.5. JanusGraph 0.1.1附带TinkerPop 3.2.3,您看到的错误已通过TinkerPop 3.2.5解决。

The master branch of JanusGraph is already at TinkerPop 3.2.6, so it is compatible with Jupyter notebooks, but you'd have to build JanusGraph from source code. JanusGraph的主分支已经在TinkerPop 3.2.6,因此它与Jupyter笔记本兼容,但你必须从源代码构建JanusGraph。 I'd expect the next release of JanusGraph to be out later this month. 我希望JanusGraph的下一个版本将在本月晚些时候发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM