Skip to content

Commit 23f58ea

Browse files
committed
start default kernel as root to avoid breaking change
1 parent f16e512 commit 23f58ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

template/server/contexts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def create_context(client, websockets: dict, language: str, cwd: str, user
4242
"type": "notebook",
4343
"name": str(uuid.uuid4()),
4444
}
45-
logger.debug(f"Creating new {language} context")
45+
logger.debug(f"Creating new {language} context for user {user}")
4646

4747
response = await client.post(f"{JUPYTER_BASE_URL}/api/sessions", json=data)
4848

template/start-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function start_jupyter_server() {
3535
response=$(curl -s -o /dev/null -w "%{http_code}" "http://localhost:8888/api/status")
3636
done
3737

38-
response=$(curl -s -X POST "localhost:8888/api/sessions" -H "Content-Type: application/json" -d '{"path": "'$HOME'", "kernel": {"name": "python3"}, "type": "notebook", "name": "default"}')
38+
response=$(curl -s -X POST "localhost:8888/api/sessions" -H "Content-Type: application/json" -d '{"path": "'$HOME'", "kernel": {"name": "python3_root"}, "type": "notebook", "name": "default"}')
3939
status=$(echo "${response}" | jq -r '.kernel.execution_state')
4040
if [[ ${status} != "starting" ]]; then
4141
echo "Error creating kernel: ${response} ${status}"

0 commit comments

Comments
 (0)