Python Language Server

Tips and information on how to install and use language servers with the editor.
Post Reply
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Python Language Server

Post by Rickard Johansson »

Python Language Server
A Python 2.7 and 3.5+ implementation of the Language Server Protocol.

Installation
Download and install Python for Windows https://www.python.org/downloads/windows/

In a command prompt run:

Code: Select all

>pip install 'python-language-server[all]'

Add the server to your project or site settings

Server name
Python-language-server

Command
pyls.exe

Command line arguments
<empty>

Initial folder
<AppData>\Local\Programs\Python\Python39\Scripts

File extension and language id
.py=python

Communication channel
* Command line (stdio)

Source folders
<Source>\Python\myProject

Initialize options
{}

For more command line arguments you can open a command prompt and run:

Code: Select all

pyls -h
Post Reply