[英]Neptune Jupyter notebook is not showing graph tab
In the Neptune notebook, I add the vertex as follow:在 Neptune notebook 中,我添加顶点如下:
%%gremlin
g.addV('labelC').property(T.id, '153')
Then I do the gremlin -pv,oute,inv
option to see a visual graph representation as below.然后我执行gremlin -pv,oute,inv
选项以查看如下所示的可视化图形表示。 Reference: https://docs.aws.amazon.com/neptune/latest/userguide/notebooks-visualization.html参考: https : //docs.aws.amazon.com/neptune/latest/userguide/notebooks-visualization.html
%%gremlin -p v,oute,inv
g.V().hasLabel('labelC')
However, I don't see the graph tab in the output.但是,我在输出中没有看到图形选项卡。
The rendering hints are designed to help the renderer know how to draw the graph when a path
step is present.渲染提示旨在帮助渲染器了解在存在path
步骤时如何绘制图形。 In general to get a nice rendering it is best to use a path
step.一般来说,要获得良好的渲染效果,最好使用path
步骤。 In your example there will just be a set of vertices so the hint is actually stopping any rendering.在您的示例中,将只有一组顶点,因此提示实际上是停止任何渲染。 In many cases the hints are no longer needed.在许多情况下,不再需要提示。 There are a lot of examples in this notebook . 这个笔记本中有很多例子。 An example of a simple rendering might be:一个简单渲染的例子可能是:
%%gremlin
g.V('44').outE().inV().path().by(elementMap())
The hints are not needed here as the elementMap
step gives the renderer all it needs in order to create a visual.这里不需要提示,因为elementMap
步骤为渲染器提供了创建视觉所需的一切。 Please checkout the notebook linked above and let me know if you have any additional questions.请查看上面链接的笔记本,如果您有任何其他问题,请告诉我。 That notebook explains all of the possible hints and ways to adjust the visuals in detail.该笔记本详细解释了所有可能的提示和调整视觉效果的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.