Skip to content

Commit 16d7df0

Browse files
authored
Merge branch 'main' into performance-regression-when-setting-env-vars-on-first-e2b-2850
2 parents 475d787 + 76a6406 commit 16d7df0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@e2b/code-interpreter-template",
33
"private": true,
4-
"version": "0.0.11"
4+
"version": "0.0.12"
55
}

template/server/main.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ async def lifespan(app: FastAPI):
3636
client = httpx.AsyncClient()
3737

3838
try:
39-
default_context = await create_context(client, websockets, "python", "/home/user")
40-
default_websockets["python"] = default_context.id
41-
websockets["default"] = websockets[default_context.id]
39+
python_context = await create_context(client, websockets, "python", "/home/user")
40+
default_websockets["python"] = python_context.id
41+
websockets["default"] = websockets[python_context.id]
42+
43+
javascript_context = await create_context(client, websockets, "javascript", "/home/user")
44+
default_websockets["javascript"] = javascript_context.id
4245

4346
logger.info("Connected to default runtime")
4447
yield

0 commit comments

Comments
 (0)