| 1 |
# Version 1.1 # |
| 2 |
|
| 3 |
## DataLab Version 1.1.0 (2026-02-02) ## |
| 4 |
|
| 5 |
### ✨ New Features ### |
| 6 |
|
| 7 |
**Web API for HTTP/JSON integration:** |
| 8 |
|
| 9 |
DataLab now provides a modern **HTTP/JSON Web API** as an alternative to the existing XML-RPC interface. This is the recommended integration path for new projects, especially for Jupyter notebooks and web-based tools. |
| 10 |
|
| 11 |
* **Accessible via**: File → Web API → Start Web API Server (or set `DATALAB_WEBAPI_ENABLED=1` environment variable) |
| 12 |
* **Key benefits**: |
| 13 |
* JSON for metadata and NPZ for binary data (efficient large array transfer) |
| 14 |
* Bearer token authentication for security |
| 15 |
* REST conventions with OpenAPI documentation |
| 16 |
* WASM/Pyodide compatibility (works in browser environments) |
| 17 |
* **Endpoints include**: |
| 18 |
* Object listing, retrieval, creation, and deletion |
| 19 |
* Metadata management and binary data transfer (NPZ format) |
| 20 |
* Computation API for running processing operations remotely |
| 21 |
* **Auto-discovery**: DataLab-Kernel automatically finds and connects to a running DataLab instance without manual configuration |
| 22 |
* **Security**: Localhost binding by default, with optional localhost token bypass for simplified local development |
| 23 |
|
| 24 |
**PyQt6 compatibility:** |
| 25 |
|
| 26 |
* DataLab now fully supports PyQt6 in addition to PyQt5 |
| 27 |
* Fixed screen geometry retrieval to use `primaryScreen()` for Qt5-Qt6 compatibility |
| 28 |
* CI pipeline now includes PyQt6 testing to ensure ongoing compatibility |
| 29 |
|
| 30 |
**Remote control API enhancements:** |
| 31 |
|
| 32 |
> **Note:** These new features also concern the macro commands API, as macros use the same proxy interface as remote control clients. |
| 33 |
|
| 34 |
* Added `call_method()` method to `RemoteProxy` class for calling any public method on DataLab main window or panels: |
| 35 |
* Enables programmatic access to operations not exposed through dedicated proxy methods (e.g., `remove_object`, `delete_all_objects`, `get_current_panel`) |
| 36 |
* Supports automatic method resolution: checks main window first, then current panel if method not found |
| 37 |
* Optional `panel` parameter allows targeting specific panel ("signal" or "image") |
| 38 |
* Thread-safe execution: GUI operations automatically execute in main thread to prevent freezing |
| 39 |
* Proper exception handling: exceptions raised during method execution (e.g., attempting to call private methods) are captured and propagated to the client as `xmlrpc.client.Fault` objects with the original error message |
| 40 |
* New macro example `test_call_method.py` demonstrates usage: removing objects, getting current panel, and panel-specific operations |
| 41 |
* Expands automation capabilities for advanced macro workflows and external application control |
| 42 |
|
| 43 |
* Added `remove_object()` method to proxy interface (local and remote) for selective object deletion |
| 44 |
* Removes currently selected object from active panel |
| 45 |
* Optional `force` parameter to skip confirmation dialog |
| 46 |
* Complements existing `reset_all()` method which clears the entire workspace (including all macros) |
| 47 |
|
| 48 |
**Dependencies:** |
| 49 |
|
| 50 |
* Updated Sigima dependency to version 1.1.0 which includes new features and bug fixes |
| 51 |
* Added Web API dependencies: FastAPI, Uvicorn, and Pydantic (included in standard installation) |