Calysto / metakernel

Jupyter/IPython Kernel Tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow users to set display name when installing kernels

mdeff opened this issue · 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.

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

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.