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 4
4
def test_bash ():
5
5
with CodeInterpreter () as sandbox :
6
6
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 1
1
FROM python:3.10
2
2
3
3
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
5
5
6
6
ENV PIP_DEFAULT_TIMEOUT=100 \
7
7
PIP_DISABLE_PIP_VERSION_CHECK=1 \
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function start_jupyter_server() {
8
8
done
9
9
echo " Jupyter Server started"
10
10
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"} ' )
12
12
status=$( echo " ${response} " | jq -r ' .execution_state' )
13
13
if [[ ${status} != " starting" ]]; then
14
14
echo " Error creating kernel: ${response} ${status} "
You can’t perform that action at this time.
0 commit comments