File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44def 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 "
Original file line number Diff line number Diff line change 11FROM python:3.10
22
33RUN 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
66ENV PIP_DEFAULT_TIMEOUT=100 \
77 PIP_DISABLE_PIP_VERSION_CHECK=1 \
Original file line number Diff line number Diff 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} "
You can’t perform that action at this time.
0 commit comments