Skip to content

Commit 00f104d

Browse files
Kernel changes
1 parent 74f26fa commit 00f104d

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
"python.envFile": "${workspaceFolder}/.env",
5353
"python.linting.enabled": true,
5454
"python.linting.pylintEnabled": true,
55+
"jupyter.defaultKernel": "apim-samples",
56+
"jupyter.askForKernelRestart": false,
57+
"jupyter.notebookFileRoot": "${workspaceFolder}",
5558
"python.formatting.autopep8Path": "/home/vscode/.venv/bin/autopep8",
5659
"python.formatting.blackPath": "/home/vscode/.venv/bin/black",
5760
"python.formatting.yapfPath": "/home/vscode/.venv/bin/yapf",

.devcontainer/post-start-light.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ echo ""
1414

1515
echo "🔧 Running minimal post-start configuration..."
1616

17-
# Set up Python path configuration (lightweight)
18-
if [ -f "setup/setup_python_path.py" ]; then
19-
python setup/setup_python_path.py --generate-env || echo "⚠️ Python path setup skipped"
20-
fi
17+
2118

2219
# Configure Azure CLI (quick)
2320
echo "☁️ Configuring Azure CLI..."
@@ -28,13 +25,9 @@ echo "📥 Checking Azure CLI extensions..."
2825
az extension add --name containerapp --only-show-errors 2>/dev/null || true
2926
az extension add --name front-door --only-show-errors 2>/dev/null || true
3027

31-
# Set up Jupyter kernel if needed
32-
echo "📓 Ensuring Jupyter kernel is available..."
33-
python -m ipykernel install --user --name=apim-samples --display-name="APIM Samples Python" 2>/dev/null || echo "⚠️ Jupyter kernel already configured"
3428

35-
# Ensure VS Code recognizes the Python interpreter
36-
echo "🐍 Configuring Python interpreter for VS Code..."
37-
python .devcontainer/configure-python-interpreter.py
29+
30+
3831

3932
# Create workspace settings if they don't exist
4033
echo "🛠️ Ensuring workspace configuration..."

0 commit comments

Comments
 (0)