Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .agents/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
set -euo pipefail

if ! command -v uv >/dev/null 2>&1; then
python -m pip install --user uv
export PATH="$HOME/.local/bin:$PATH"
fi

uv sync --all-packages --frozen

mkdir -p \
"$HOME/.jupyter/jupyter_server_config.d" \
"$HOME/.jupyter/lab/user-settings/@jupyterlab/completer-extension"

cat > "$HOME/.jupyter/jupyter_server_config.d/ty-language-server.json" <<'EOF'
{
"LanguageServerManager": {
"language_servers": {
"ty": {
"version": 2,
"argv": ["ty", "server"],
"languages": ["python"],
"mime_types": ["text/python", "text/x-python", "text/x-ipython"],
"display_name": "ty"
}
}
}
}
EOF

cat > "$HOME/.jupyter/lab/user-settings/@jupyterlab/completer-extension/manager.jupyterlab-settings" <<'EOF'
{
"autoCompletion": true
}
EOF
20 changes: 20 additions & 0 deletions .amp/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
services:
jupyter:
command: >-
uv run
--with jupyterlab
--with jupyterlab-lsp
--with ipywidgets
--with jupyter-collaboration
jupyter lab
--ip=0.0.0.0
--port=$PORT
--no-browser
--IdentityProvider.token=
--ServerApp.password=
--ServerApp.allow_remote_access=True
--ServerApp.allow_origin_pat=^https://[A-Za-z0-9-]+[.]onamp[.]dev$
--ServerApp.root_dir=.
portal:
title: JupyterLab
description: JupyterLab with ty language-server completion for the Tilebox workspace.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

__pycache__/
.ipynb_checkpoints/
.virtual_documents/

.idea/

Expand All @@ -18,4 +19,5 @@ test-report.xml

*.egg-info/

.amp/
.amp/*
!.amp/services.yaml
Loading