File tree 4 files changed +11
-5
lines changed
4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @e2b/code-interpreter-python " : patch
3
+ " @e2b/code-interpreter " : patch
4
+ ---
5
+
6
+ Fix path when creating new kernel
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ interface Kernels {
7
7
}
8
8
9
9
export interface CreateKernelProps {
10
- cwd : string
10
+ path : string
11
11
kernelName ?: string
12
12
}
13
13
@@ -147,7 +147,7 @@ export class JupyterExtension {
147
147
cwd : string = '/home/user' ,
148
148
kernelName ?: string
149
149
) : Promise < string > {
150
- const data : CreateKernelProps = { cwd }
150
+ const data : CreateKernelProps = { path : cwd }
151
151
if ( kernelName ) {
152
152
data . kernelName = kernelName
153
153
}
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def create_kernel(
139
139
:param timeout: Timeout for the kernel creation request.
140
140
:return: Kernel id of the created kernel
141
141
"""
142
- data = {"cwd " : cwd }
142
+ data = {"path " : cwd }
143
143
if kernel_name :
144
144
data ["kernel_name" ] = kernel_name
145
145
logger .debug (f"Creating kernel with data: { data } " )
Original file line number Diff line number Diff line change 26
26
with CodeInterpreter () as sandbox :
27
27
result = sandbox .notebook .exec_cell (code )
28
28
29
- print (result .result .formats ())
30
- print (len (result .display_data ))
29
+ print (result .results [ 0 ] .formats ())
30
+ print (len (result .results ))
You can’t perform that action at this time.
0 commit comments