Skip to content

Commit f86f1ca

Browse files
committed
bugbot comment
1 parent 27ae39d commit f86f1ca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

template/start-jupyter.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
/usr/local/bin/jupyter server --IdentityProvider.token=""
3+
trap 'echo "Jupyter exited, killing code-interpreter..."; pkill -f "uvicorn main:app"' EXIT
44

5-
# Jupyter exited — kill code-interpreter so supervisord restarts both
6-
echo "Jupyter exited, killing code-interpreter..."
7-
pkill -f "uvicorn main:app"
5+
exec /usr/local/bin/jupyter server --IdentityProvider.token=""

template/template.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def make_template(
124124
.copy("start-up.sh", ".jupyter/start-up.sh")
125125
.copy("start-code-interpreter.sh", ".jupyter/start-code-interpreter.sh")
126126
.copy("start-jupyter.sh", ".jupyter/start-jupyter.sh")
127-
.run_cmd("chmod +x .jupyter/start-code-interpreter.sh .jupyter/start-up.sh .jupyter/start-jupyter.sh")
127+
.run_cmd(
128+
"chmod +x .jupyter/start-code-interpreter.sh .jupyter/start-up.sh .jupyter/start-jupyter.sh"
129+
)
128130
.copy("jupyter_server_config.py", ".jupyter/")
129131
.make_dir(".ipython/profile_default/startup")
130132
.copy("ipython_kernel_config.py", ".ipython/profile_default/")

0 commit comments

Comments
 (0)