Skip to content

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.

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.
  1. Install the server:

    Terminal window
    npm install -g typescript-language-server typescript
  2. Restart JupyterLab.

  1. Install the language server.

  2. Run jupyter --paths and find a jupyter_server_config.d/ folder in the config list.

  3. Add a JSON file with the server specification to that folder. See the jupyterlab-lsp documentation for the format.

  4. Restart JupyterLab.