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 driver.py command line args when using ipython #68

Merged
merged 1 commit into from
Jul 3, 2016

Conversation

EmperorDali
Copy link
Contributor

This fixes #63

The bug is caused when starting the client or kernel driver while having
python-shell-interpreter set to ipython. The driver.py command line
arguments (e.g., "--port" or "--conn-file") get parsed by ipython which
doesn't recognize them and exits with an error, without starting
driver.py

This fix appends "--" directly after the python interpreter path, e.g.,

/usr/bin/ipython -- /path/to/driver.py --port 8080

This has the effect of correctly passing the driver.py command line args
to driver.

This change has no effect if python-shell-interpreter is python -
presumably the python interpreter just ignores "--".

This fixes gregsexton#63

The bug is caused when starting the client or kernel driver while having
python-shell-interpreter set to ipython. The driver.py command line
arguments (e.g., "--port" or "--conn-file") get parsed by ipython which
doesn't recognize them and exits with an error, without starting
driver.py

This fix appends "--" directly after the python interpreter path, e.g.,

/usr/bin/ipython -- /path/to/driver.py --port 8080

This has the effect of correctly passing the driver.py command line args
to driver.

This change has no effect if python-shell-interpreter is python -
presumably the python interpreter just ignores "--".
@gregsexton gregsexton merged commit fbdbc27 into gregsexton:master Jul 3, 2016
@gregsexton
Copy link
Owner

Nice. Thanks a lot for fixing this.

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.

ipython v4.2.0 and ob-ipython seem not to play well
2 participants