Page 1 of 1

Python Language Server

Posted: 04 May 2021 17:46
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