File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class QmdToIpynb:
15
15
def __init__ (self , qmd_path : str ):
16
16
self .qmd_path = Path (qmd_path )
17
17
self .cells : List [Dict [str , Any ]] = []
18
- self .kernel_name = "julia-1.11 " # Default kernel
18
+ self .kernel_name = "julia" # Default kernel
19
19
20
20
def parse (self ) -> None :
21
21
"""Parse the .qmd file and extract cells."""
@@ -33,7 +33,7 @@ def parse(self) -> None:
33
33
if lines [i ].strip ().startswith ('engine:' ):
34
34
engine = lines [i ].split (':' , 1 )[1 ].strip ()
35
35
if engine == 'julia' :
36
- self .kernel_name = "julia-1.11 "
36
+ self .kernel_name = "julia"
37
37
elif engine == 'python' :
38
38
self .kernel_name = "python3"
39
39
i += 1
@@ -154,15 +154,14 @@ def to_notebook(self) -> Dict[str, Any]:
154
154
"cells" : cells ,
155
155
"metadata" : {
156
156
"kernelspec" : {
157
- "display_name" : "Julia 1.11 " ,
157
+ "display_name" : "Julia" ,
158
158
"language" : "julia" ,
159
159
"name" : self .kernel_name
160
160
},
161
161
"language_info" : {
162
162
"file_extension" : ".jl" ,
163
163
"mimetype" : "application/julia" ,
164
- "name" : "julia" ,
165
- "version" : "1.11.0"
164
+ "name" : "julia"
166
165
}
167
166
},
168
167
"nbformat" : 4 ,
You can’t perform that action at this time.
0 commit comments