Skip to main content

Spyder extensions for the python-language-server

Project description

pyls-spyder

Project License - MIT pypi version conda version download count Downloads PyPI status PyLS-Spyder tests

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 # --

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

pyls-spyder-0.2.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyls_spyder-0.2.1-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyls-spyder-0.2.1.tar.gz.

File metadata

  • Download URL: pyls-spyder-0.2.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.5

File hashes

Hashes for pyls-spyder-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e52b8b6cbc6d589fe3ed0e25ceb47aa64bcb8403f6c82012dd5fbdfade08fdb8
MD5 6f5746892a645347a1c303047d15b415
BLAKE2b-256 400ea3f71842a9687072ed46b45422197ec9ab649985acdd0e29194724163c0d

See more details on using hashes here.

File details

Details for the file pyls_spyder-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pyls_spyder-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.5

File hashes

Hashes for pyls_spyder-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 80064b243bf7d8a041cf79294411fd24668385a2fa5eaabda9e596cb713defcf
MD5 0ce493bcf46d2bfed56ed444acd58b84
BLAKE2b-256 c9411502058b3b43810e9e20871c626e303662067e52118a134a52451c7bef15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page