Skip to content

Add a --profile flag to kernel install#165

Merged
minrk merged 5 commits into
ipython:masterfrom
johanfforsberg:install-profile-flag
Aug 1, 2016
Merged

Add a --profile flag to kernel install#165
minrk merged 5 commits into
ipython:masterfrom
johanfforsberg:install-profile-flag

Conversation

@johanfforsberg

Copy link
Copy Markdown

E.g.

$ ipython kernel install --name=mypython --profile=myprofile --user

The idea is to be able to configure the kernel to always use a given IPython profile. This could be pretty useful for creating custom versions of the ipykernel.

I realised that there was already almost support for this in the code, I just added a new argument and hooked it up to the internals.

Johan Forsberg added 3 commits July 28, 2016 19:11
Comment thread ipykernel/kernelspec.py Outdated

def install(kernel_spec_manager=None, user=False, kernel_name=KERNEL_NAME, display_name=None, prefix=None):
def install(kernel_spec_manager=None, user=False, kernel_name=KERNEL_NAME, display_name=None,
profile=None, prefix=None):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add profile on the end instead of just before prefix, so that it's a backward-compatible patch in the extremely unlikely event of people passing all arguments positionally?

@minrk minrk added this to the 4.4 milestone Jul 29, 2016
@minrk minrk merged commit d72e3c5 into ipython:master Aug 1, 2016
@minrk

minrk commented Aug 1, 2016

Copy link
Copy Markdown
Member

Great, thanks!

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