Skip to content
Open
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
50 changes: 50 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# .devcontainer — Cómo usar y configurar en VS Code ✅

## Descripción
Este documento explica **cómo instalar**, **abrir** y **personalizar** el entorno de desarrollo definido en `.devcontainer` usando Visual Studio Code.

---

## Requisitos previos 🔧
- Docker (o Docker Desktop) instalado y en ejecución — [Docker Desktop](https://www.docker.com/products/docker-desktop/).
- Visual Studio Code actualizado — [Visual Studio Code](https://code.visualstudio.com/).
- Extensión **Dev Containers** instalada: `ms-vscode-remote.vscode-dev-containers` — [Descargar extensión](https://aka.ms/vscode-remote/download/extension).

---

## Abrir el proyecto dentro del contenedor (pasos rápidos) ⚡
1. Abre la carpeta del repositorio en VS Code (la que contiene `.devcontainer/`).
2. Abre la paleta de comandos (Ctrl+Shift+P) y ejecuta:
- `Dev Containers: Reopen in Container`
3. VS Code construirá o descargará la imagen y abrirá el proyecto dentro del contenedor.

---

## Comandos útiles en VS Code ✅
- `Dev Containers: Rebuild Container` — Reconstruye el contenedor desde cero.
- `Dev Containers: Reopen in Container` — Reabre la carpeta dentro del contenedor.
- `Dev Containers: Attach to Running Container` — Se conecta a un contenedor ya en ejecución.
- Ver salida del proceso: Panel *Output* → seleccionar *Dev Containers*.

---

## Qué hace el `.devcontainer/devcontainer.json` en este repositorio 🔍
- Usa la imagen `python:3.13.7-bookworm`.
- Añade features (utilidades comunes y Python).
- Ejecuta `updateContentCommand` para instalar paquetes del sistema y `pip3 install --user -r requirements.txt`.
- Instala extensiones listadas en `customizations.vscode.extensions`.

---

## Solución de problemas ⚠️
- Si la construcción falla: revisa la salida en *Dev Containers* y confirma que Docker está activo.
- Si las extensiones no se instalan: reconstruye el contenedor (`Rebuild Container`).
- Para ejecutar comandos manuales dentro del contenedor: abre *Terminal → New Terminal* en VS Code.

---

## Verificación rápida ✅
1. Tras abrir el contenedor, abre un terminal integrado y ejecuta:
- `python --version` (debería corresponder a la imagen)
- `pip3 list` (ver paquetes instalados)
2. Si tu flujo usa notebooks, abre la carpeta `notebooks/` y ejecuta las celdas con el kernel del entorno.
43 changes: 43 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "python:3.13.7-bookworm",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": "true",
"username": "vscode",
"userUid": "1000",
"userGid": "1000",
"upgradePackages": "false"
},
"ghcr.io/devcontainers/features/python:1": {
"installTools": true,
"version": "none"
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",
"updateContentCommand": "sudo apt-get update && sudo apt-get install -y libgl1 libglib2.0-0 libsm6 libxext6 libxrender1 ffmpeg && pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter",
"GitHub.copilot-chat"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/__pycache__/
1,339 changes: 1,339 additions & 0 deletions notebooks/LBT.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions notebooks/download_default_image.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "099ba2fc-3699-415e-a9f6-2e389210f3b9",
"metadata": {},
"outputs": [],
"source": [
"#default_image = \"http://www.hpca.ual.es/~vruiz/images/Homer.png\"\n",
"default_image = \"http://www.hpca.ual.es/~vruiz/images/pajarillo_512x512.png\""
"default_image = \"http://www.hpca.ual.es/~vruiz/images/lena.png\""
]
},
{
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ color_transforms @ git+https://github.com/vicente-gonzalez-ruiz/color_transforms
scalar_quantization @ git+https://github.com/vicente-gonzalez-ruiz/scalar_quantization@master#egg=scalar_quantization
DWT2D @ git+https://github.com/vicente-gonzalez-ruiz/DWT2D@master#egg=DWT2D
#jupyterlab
ipykernel
nbformat
torch
Loading