Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix supplying neo4j_uri and auth data in the cell line #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rickardg
Copy link

When using cy2py-1.1.5 it is not possible to run a cypher cell if the connection data is provided inline in the cell, like this
%%cypher -u bolt://xxx.yy:nnnn -us USER -pw PASS

while it does work if it is provided in python variables, like this
neo_uri = bolt://xxx.yy:nnnn
neo_user = USER
neo_pass = PASS
%%cypher -u $neo_uri-us $neo_user -pw $neo_pass

This was due to an if-statement with two identical code paths in cy2.py:__parse_args. I have pushed a fix that 'works for me' on my fork. (I can't get Docker running on my ancient dev machine so there are no tests, sorry about that.)

@conker84
Copy link
Owner

hi @rickardg can you please add a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants