-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
Currently, kernel specs are sorted by their display name. The sorting logic is encapsulated in kernelselector.js and tricky to customize. Provide some way to allow for a custom sort order. Example use cases:
- In the Data Science Experience, notebooks for Apache Spark services can choose from several programming languages and combine these with different Spark versions. We want the higher Spark versions listed before the lower ones.
Disclaimer: I'm a developer working on the Data Sciene Experience. - ENH: Highlight some kernels in the UI while allowing access to more kernels #2514, originally a post on the Jupyter mailing list, asks for "favorite kernels" being listed first, with the option of hiding other kernels in a submenu. The list of favorite kernels is defined by the operator of the notebook server, not by the users.
https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/jupyter/qhDpFTuxzgs
Implementation options could be to customize the sorting logic, or to add metadata to kernel specs. We observed that with notebook 5.0, the kernel specs are sometimes loaded before custom.js, so replacing the sorting logic at that point is a problem. Also, there are two different implementations of the sorting logic in kernelselector.js.
Adding an optional "sort key" attribute to kernel specs, which defaults to the display name, would allow hosting services to customize the sort order of the provided kernels. In cases where the notebook server is backend by a kernel gateway, the sort order would be under control of the kernel gateway operator.