Language servers
xtralab includes
jupyterlab-lsp, which
gives completions, diagnostics, and code navigation in editors and notebooks.
| Language | Server | Installation |
|---|---|---|
| Python | ty |
Included with xtralab |
| TypeScript, JavaScript | typescript-language-server |
Registered. Install it yourself. |
Python environments
Section titled “Python environments”ty resolves imports from a Python environment:
| Installation | Environment |
|---|---|
| Desktop app | The project environment that the kernel uses. Without a project environment, the bundled runtime. |
| pip or uv | The environment that was active when the server started. Otherwise, a .venv folder at the root of the server folder. See the ty documentation. |
Install the TypeScript server
Section titled “Install the TypeScript server”-
Install the server:
Terminal window npm install -g typescript-language-server typescript -
Restart JupyterLab.
Add a language server
Section titled “Add a language server”-
Install the language server.
-
Run
jupyter --pathsand find ajupyter_server_config.d/folder in theconfiglist. -
Add a JSON file with the server specification to that folder. See the
jupyterlab-lspdocumentation for the format. -
Restart JupyterLab.