Skip to content

Instantly share code, notes, and snippets.

View mlejva's full-sized avatar
๐Ÿ’ญ
๐Ÿš€

Vasek Mlejnsky mlejva

๐Ÿ’ญ
๐Ÿš€
View GitHub Profile
import { CodeInterpreter } from '@e2b/code-interpreter'
const ci = await CodeInterpreter.create()
const context1 = {
id: '1',
language: 'javascript',
}
ci.notebook(context).execCell('...')
@mlejva
mlejva / README.md
Last active June 4, 2024 09:23
E2B Code Interpreter with Jupyter UI

[Experimental] E2B Code Interpreter with Jupyter UI

This guide allows you to use the E2B's Code Interpreter SDK and render the headless Jupyter notebook in browser With this, you can combine AI capabilitie of writing the code with human - you can create human-in-the-loop AI products.

Demo

https://i.imgur.com/rSPenYW.mp4

1. Install experimental Code Interpreter

Keep in mind that this is experimental branch so things might brake and we might be doing braking changes.

class Logging {
constructor(length) {
this.currentLength = 0;
this.cqueue = new Array(length);
}
addEvent(event) {
if (this.currentLength < this.cqueue.length) {
this.cqueue[this.cqueue.length - this.currentLength - 1] = event;
} else {