File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ export const KernelSelector: React.FC<KernelSelectorProps> = React.memo(
382
382
"this compute server"
383
383
) : (
384
384
< >
385
- the < SiteName /> shared environment
385
+ the < SiteName /> Home Base environment
386
386
</ >
387
387
) }
388
388
.
Original file line number Diff line number Diff line change @@ -162,6 +162,13 @@ export class IPynbImporter {
162
162
this . _ipynb . metadata &&
163
163
this . _ipynb . metadata . kernelspec &&
164
164
this . _ipynb . metadata . kernelspec . name ;
165
+ if ( this . _kernel != null ) {
166
+ // kernel names are supposed to be case insensitive
167
+ // https://jupyter-client.readthedocs.io/en/latest/kernels.html
168
+ // We also make them all lower case when reading them in at
169
+ // src/packages/jupyter/kernel/kernel-data.ts
170
+ this . _kernel = this . _kernel . toLowerCase ( ) ;
171
+ }
165
172
} ;
166
173
167
174
_import_metadata = ( ) => {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export async function get_kernel_data(): Promise<KernelSpec[]> {
54
54
for ( const kernel in kernel_data ) {
55
55
const value = kernel_data [ kernel ] ;
56
56
v . push ( {
57
- name : kernel ,
57
+ name : kernel . toLowerCase ( ) ,
58
58
display_name : value . spec . display_name ,
59
59
language : spec2language ( value . spec ) ,
60
60
// @ts -ignore
@@ -83,8 +83,9 @@ export async function getLanguage(kernelName: string): Promise<string> {
83
83
}
84
84
85
85
export async function get_kernel_data_by_name (
86
- name : string
86
+ name : string ,
87
87
) : Promise < KernelSpec > {
88
+ name = name . toLowerCase ( ) ;
88
89
const kernel_data = await get_kernel_data ( ) ;
89
90
for ( const kernel of kernel_data ) {
90
91
if ( kernel . name == name ) {
You can’t perform that action at this time.
0 commit comments