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

Cope with {connection_file} being a substring #43

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

rwb27
Copy link
Contributor

@rwb27 rwb27 commented Jan 27, 2020

Jupyter allows kernelspecs to contain arguments with {connection_file} as a
substring, e.g. `wslpath {connection_file}`. This commit uses string.replace() to match that behaviour.

Previously {connection_file} had to be an argument on its own in argv. That's not a big deal, except if you're trying to do something niche, like start a kernel in Windows Subsystem Linux, that requires the filepath to be converted. This fixes #42.

Jupyter allows kernelspecs to contain arguments with {connection_file} as a
substring, e.g. `wslpath {connection_file}`. This commit uses
string.replace() to match that behaviour.  Previously {connection_file} had to be an
argument on its own in argv.
Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nifty fix! Thanks.

@captainsafia captainsafia merged commit 07ca3e2 into nteract:master Jan 28, 2020
@captainsafia
Copy link
Member

@rwb27 I've published this package so that we can bring in the changes in the next release of the nteract desktop app. It will be released on February 24th.

@rwb27
Copy link
Contributor Author

rwb27 commented Feb 13, 2020

Brilliant! Thanks very much.

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.

kernelspec handled differently between nteract and Jupyter
2 participants