nepy4j 3.0中的ipython-cypher%cypher magic破坏了吗?

时间:2017-01-26 18:19:07

标签: neo4j ipython cypher ipython-magic

我正在使用jupyter笔记本和ipython-cypher但是因为neo4J 3.0版本有一个强制性密码更改我似乎无法使用%cypher magic ...(单个%... %% cypher可以正常工作传递第一行的连接URL)

results = %cypher MATCH (person:Person)-[:LIKES]->(drink:Drink) \
                  RETURN person.name AS name, drink.name AS drink

df = results.get_dataframe()

df

显然给出了:

StatusException: Code [401]: Unauthorized. No permission -- see authorization schemes.
Authorization Required

在这种情况下,我如何使用user / pwd combi传递连接URL? (%% cypher工作正常)

1 个答案:

答案 0 :(得分:0)

它的工作方式与%%相同:

%load_ext cypher

result = %cypher http://neo4j:password@localhost:7874/db/data MATCH (a) RETURN a LIMIT 5

print(result)

我尝试使用Python 3.5,ipython-cypher 0.2.4和neo4j 3.1。

但是,文档中的要求没有提及neo4j 3.x:http://ipython-cypher.readthedocs.io/en/latest/#requirements