{"action":"created","issue":{"url":"https://api.github.com/repos/Cadair/jupyter_environment_kernels/issues/9","labels_url":"https://api.github.com/repos/Cadair/jupyter_environment_kernels/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Cadair/jupyter_environment_kernels/issues/9/comments","events_url":"https://api.github.com/repos/Cadair/jupyter_environment_kernels/issues/9/events","html_url":"https://github.com/Cadair/jupyter_environment_kernels/issues/9","id":118640437,"number":9,"title":"Make kernel names unique","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-24T15:58:49Z","updated_at":"2015-12-12T18:40:17Z","closed_at":null,"body":"I've a conda env called \"sc\" and a kernel with the same name. In my overview list, only the kernel from the environment (`Environment(sc)`) shows up.\r\n\r\nIMO:\r\n* the kernels from the environment should get a prefix, so it's not as easy to get a duplicated kernel name (and maybe a check that if the same is still already in the list, add a postfix)\r\n* The kernel manager should, if a duplicated name is produced, result in the *original* kernel being seen"},"comment":{"url":"https://api.github.com/repos/Cadair/jupyter_environment_kernels/issues/comments/164175255","html_url":"https://github.com/Cadair/jupyter_environment_kernels/issues/9#issuecomment-164175255","issue_url":"https://api.github.com/repos/Cadair/jupyter_environment_kernels/issues/9","id":164175255,"user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T18:40:17Z","updated_at":"2015-12-12T18:40:17Z","body":"The workaround does not work: the notebook gets the list of directories and here the last element is again the the short name: `C:\\portabel\\miniconda\\envs\\sc` and results in a call to `get_kernel_spec(\"sc\")` and not `env_sc`. The interesting thing is that it is listing the kernels as an environment (as in `find_kernel_specs` the environments update the original list) but the kernel spec is loaded from the kernel dir and not the env (as in `get_kernel_spec` it loads the envs only when the call for a kernel in the kernel dir fails but in this case it does not).\r\n\r\nI think it would be better to use a arbitrary prefix + env name (like `environmentkernels\\conda\\name`) and let `find_kernel_specs` return that."}}