Skip to content

Commit de7db28

Browse files
authored
Ignore display name when searching interpreters (#10175)
Partial fix for #10173 Comparing against path of interpreter alone is sufficient. Figured there's no harm in trying to minimise occurrences of dup kernels (basically just compare against python executable path, as thats sufficient and always accurate) Display name: Can change from version to version of Python extension (i.e. it shouldn't have been used as a unique identifier) Display name can change after extension loads and more information about interpreter is available.
1 parent f044f26 commit de7db28

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/client/datascience/jupyter/kernels/kernelService.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ export class KernelService {
104104
if (item.language.toLowerCase() !== PYTHON_LANGUAGE.toLowerCase()) {
105105
return false;
106106
}
107-
if (item.display_name !== option.displayName) {
108-
return false;
109-
}
110107
return (
111108
this.fileSystem.arePathsSame(item.argv[0], option.path) ||
112109
this.fileSystem.arePathsSame(item.metadata?.interpreter?.path || '', option.path)

0 commit comments

Comments
 (0)