@e2b/code-interpreter
Advanced tools
Comparing version 0.0.9-beta.39 to 0.0.9-beta-df.3
@@ -53,8 +53,11 @@ import { ConnectionConfig, Sandbox } from 'e2b'; | ||
type MIMEType = string; | ||
type Data = { | ||
data: Record<string, unknown>; | ||
}; | ||
/** | ||
* Dictionary that maps MIME types to their corresponding string representations of the data. | ||
* Dictionary that maps MIME types to their corresponding representations of the data. | ||
*/ | ||
type RawData = { | ||
[key: MIMEType]: string; | ||
}; | ||
} & Data; | ||
/** | ||
@@ -112,2 +115,6 @@ * Represents the data to be displayed as a result of executing a cell in a Jupyter notebook. | ||
/** | ||
* Contains the data from DataFrame. | ||
*/ | ||
readonly data?: Record<string, unknown>; | ||
/** | ||
* Extra data that can be included. Not part of the standard types. | ||
@@ -114,0 +121,0 @@ */ |
@@ -130,2 +130,3 @@ "use strict"; | ||
this.javascript = data["javascript"]; | ||
this.data = data["data"]; | ||
this.isMainResult = isMainResult; | ||
@@ -145,3 +146,5 @@ this.raw = data; | ||
"json", | ||
"javascript" | ||
"javascript", | ||
"data", | ||
"extra" | ||
].includes(key)) { | ||
@@ -186,2 +189,5 @@ this.extra[key] = data[key]; | ||
} | ||
if (this.data) { | ||
formats.push("data"); | ||
} | ||
for (const key of Object.keys(this.extra)) { | ||
@@ -496,3 +502,3 @@ formats.push(key); | ||
}; | ||
_CodeInterpreter.defaultTemplate = "code-interpreter-beta"; | ||
_CodeInterpreter.defaultTemplate = "ci-df"; | ||
_CodeInterpreter.jupyterPort = 49999; | ||
@@ -499,0 +505,0 @@ var CodeInterpreter = _CodeInterpreter; |
{ | ||
"name": "@e2b/code-interpreter", | ||
"version": "0.0.9-beta.39", | ||
"version": "0.0.9-beta-df.3", | ||
"description": "E2B Code Interpreter - Stateful code execution", | ||
@@ -5,0 +5,0 @@ "homepage": "https://e2b.dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95636
1235