metakernel icon indicating copy to clipboard operation
metakernel copied to clipboard

Allow users to set display name when installing kernels

Open mdeff opened this issue 4 years ago • 2 comments

Users should be able to set the display_name property in the installed kernel.json at install time. This is handy when one wants to access multiple installations of a kernel (e.g., with conda-managed environments) from a GUI such as JupyterLab. I'd suggest following ipykernel and adding a --display-name parameter. Usage would be:

python -m octave_kernel install --name proj-octave --display-name "Octave in Proj"

At minimum, setting the display_name as the name would allow GUI users to distinguish between multiple installations of the same kernel. That's ipykernel default if no --display-name is passed.

mdeff avatar Apr 04 '20 02:04 mdeff

Sounds reasonable. Would you be able to make a pull request for this?

dsblank avatar Apr 04 '20 15:04 dsblank

As I'm not familiar with the code I'm afraid it'll demand me too much effort compared to the benefit. Setting the display_name as the name should however be trivial for someone familiar with the code, and it'll fix the usability issue. Adding a --display-name parameter is only of cosmetic use and could be left out for somebody sufficiently interested by such feature.

mdeff avatar Apr 06 '20 19:04 mdeff