Spyder extensions for the python-language-server
Project description
pyls-spyder
Copyright © 2020– Spyder Project Contributors
Overview
Spyder extensions for the python-language-server (pyls). This package provides Spyder-specific extras for the Language Server Protocol (LSP) on Python, such as document symbol searching and others.
Installing
To install pyls-spyder, you can use both conda or pip package managers:
# Using conda (Recommended)
conda install pyls-spyder -c spyder-ide
# Using pip
pip install pyls-spyder
Dependencies
This package depends on the python-language-server to integrate the Spyder-specific extensions.
Installing locally
To install and develop spyder-pyls locally, you will need to install the python-language-server:
# Using conda
conda install python-language-server
# Using pip
pip install python-language-server
Then, you can install the package locally using pip:
pip install -U -e .
Running tests
We use pytest to run tests as it follows:
pytest -x -v pyls_spyder/tests
Extended LSP calls
LSP method | Spyder extensions |
---|---|
textDocument/documentSymbol |
Find code cells # %% and block comments # -- |
textDocument/foldingRange |
Return code cells # %% as code folding regions |
Plugin configuration options
This plugin can be configured by using the key pyls_spyder
when calling workspace/didChangeConfiguration
on the pyls. Each configuration option is described below:
LSP method | Configuration Key | Type | Description |
---|---|---|---|
textDocument/documentSymbol |
group_cells |
bool |
Enable/Disable code cell grouping according to the total number of leading percentages |
enable_block_comments |
bool |
Enable/disable block comment detection |
Changelog
Please see our CHANGELOG file to learn more about our new features and improvements.
Contribution guidelines
We follow PEP8 and PEP257 for all Python modules. We use MyPy type annotations for all functions and classes declared on this package. Feel free to send a PR or create an issue if you have any problem/question.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyls_spyder-0.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b69e1f58dee6b0840b8ca0e8de678d0e190a89ced7c002cf02df154a7c6cfd5b |
|
MD5 | dd37020fa9ef88592aeb1a6b32cac40f |
|
BLAKE2b-256 | c6d6fd09ca5a9517d1b1dba22551622ae2838302a6f4057fb2e99ba8c1a3c12e |