Skip to content

Commit 5cd48bc

Browse files
committed
Move cwd of kernel to /home/user
1 parent 35bc15b commit 5cd48bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/tests/test_bash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
def test_bash():
55
with CodeInterpreter() as sandbox:
66
result = sandbox.notebook.exec_cell("!pwd")
7-
assert "".join(result.stdout).strip() == "/"
7+
assert "".join(result.stdout).strip() == "/home/user"

template/e2b.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.10
22

33
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
4-
build-essential curl git util-linux jq screen
4+
build-essential curl git util-linux jq
55

66
ENV PIP_DEFAULT_TIMEOUT=100 \
77
PIP_DISABLE_PIP_VERSION_CHECK=1 \

template/start-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function start_jupyter_server() {
88
done
99
echo "Jupyter Server started"
1010

11-
response=$(curl -s -X POST "localhost:8888/api/kernels")
11+
response=$(curl -s -X POST "localhost:8888/api/kernels" -H "Content-Type: application/json" -d '{"path": "/home/user"}')
1212
status=$(echo "${response}" | jq -r '.execution_state')
1313
if [[ ${status} != "starting" ]]; then
1414
echo "Error creating kernel: ${response} ${status}"

0 commit comments

Comments
 (0)