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

Allow third-party kernels to get additional args #396

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

dsblank
Copy link
Member

@dsblank dsblank commented Aug 28, 2018

This removes special treatment of IPython console so that other kernels can get command-line args. This doesn't allow the passing of flags, but does allow filenames, etc. Once this fix is in place, kernels can get these args via self.parent.extra_args

This removes special treatment of IPython console so that other kernels can get command-line args. This doesn't allow the passing of flags, but does allow filenames, etc. Once this fix is in place, kernels can get these args via self.parent.extra_args
dsblank added a commit to Calysto/metakernel that referenced this pull request Aug 28, 2018
@dsblank
Copy link
Member Author

dsblank commented Aug 30, 2018

@minrk @Carreau Do you see any possible problems with this? Currently, extra command-line args to the console are just discarded for non-ipython kernels. There is a potential issue that the current infrastructure doesn't allow sending flags to the console kernel, but this at least allows sending presumedly filenames. I guess code will have to be added to the kernels (including ipython) for running startup code. But that is a separate issue too.

@Carreau
Copy link
Member

Carreau commented Aug 30, 2018

+1 to remove special casing.

I'm willing to try that, and revert if there are issues.

@minrk minrk merged commit 34f96d7 into jupyter:master Sep 3, 2018
@minrk
Copy link
Member

minrk commented Sep 3, 2018

We used to have some special parsing of kernel args (like --pylab), but I think that's gone, so this should be fine, I think.

@dsblank dsblank deleted the patch-1 branch September 3, 2018 17:16
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.

3 participants