jupyterlab-lsp | Coding assistance for JupyterLab | Code Editor library
kandi X-RAY | jupyterlab-lsp Summary
kandi X-RAY | jupyterlab-lsp Summary
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jupyterlab-lsp
jupyterlab-lsp Key Features
jupyterlab-lsp Examples and Code Snippets
Community Discussions
Trending Discussions on jupyterlab-lsp
QUESTION
I would just like to understand what's happening below. I am using MacOs and recently switched from bash to zsh. And then I installed jupyterlab-lsp. Can you please enlighten me?
...ANSWER
Answered 2020-Jan-13 at 07:46The issue is because jupyter server is unable to find the language servers. As in my case, jupyter is installed and maintained using conda environment(miniconda) under /opt/miniconda3/, whilst my nodejs is sitting under /usr/local/. Ideally, if you are already using conda manager, you will want to uninstall nodejs completely and reinstall it using conda. Otherwise, remove the entire anaconda/conda and then reinstall python (https://www.python.org/downloads/release/python-381/) and jupyter using either pip or brew depending how/where you installed nodejs.
I was able to resolve my issue following below steps:
1.) Completely uninstall node js. I was able to do it by running nvm uninstall
or if you are using homebrew, run brew uninstall node
and then rm -f /usr/local/bin/npm
on terminal. Additionally, you can follow below reference: How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
2.) Reinstall nodejs. conda install -c conda-forge nodejs
3.) Install the language servers. See reference: https://github.com/krassowski/jupyterlab-lsp/blob/master/LANGUAGESERVERS.md#installing-language-servers
4.) Restart terminal and run jupyter lab.
Now this is the best answer that I have that was able to resolve my issue.
QUESTION
Access to pypi.org is blocked for me from the command prompt. Using the browser I can reach the domain just fine.
This causes pip install jupyterlab-lsp
to fail from the command prompt.
Normally I could download the .whl file from Pypi, and install it from local. But this is not available for this package:
https://pypi.org/project/jupyter-lsp/#files
Any alternatives to install the package?
...ANSWER
Answered 2020-Jan-04 at 15:28This actually had to do with: pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"
For Conda you can use the --insecure flag.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jupyterlab-lsp
install python 3 conda install -c conda-forge python=3
install JupyterLab and the extensions conda install -c conda-forge 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp # or pip install 'jupyterlab>=3.0.0,<4.0.0a0' jupyterlab-lsp Note: jupyterlab-lsp provides both the server extension and the lab extension. Note: With conda, you could take advantage of the bundles: jupyter-lsp-python or jupyter-lsp-r to install both the server extension and the language server.
install LSP servers for languages of your choice; for example, for Python (pylsp) and R (languageserver) servers: # note: you may want to use our fork of python-language-server instead (see below) pip install 'python-lsp-server[all]' R -e 'install.packages("languageserver")' or from conda-forge conda install -c conda-forge python-lsp-server r-languageserver Please see our full list of supported language servers which includes installation hints for the common package managers (npm/pip/conda). In general, any LSP server from the Microsoft list should work after some additional configuration. Note 1: it is worth visiting the repository of each server you install as many provide additional configuration options. Note 2: we are developing an improved (faster autocompletion, added features) version of the python-language-server. It is experimental and should not be used in production yet, but will likely benefit individual users You can check it out with: pip install git+https://github.com/krassowski/python-language-server.git@main Please report any regressions here.
(Optional, IPython users only) to improve the performance of autocompletion, disable Jedi in IPython (the LSP servers for Python use Jedi too). You can do that temporarily with: %config Completer.use_jedi = False or permanently by setting c.Completer.use_jedi = False in your ipython_config.py file. You will also benefit from using experimental version of python-language-server as described in the Note 2 (above).
(Optional, Linux/OSX-only) to enable opening files outside of the root directory (the place where you start JupyterLab), create .lsp_symlink and symlink your /home, or any other location which includes the files that you wish to make possible to open in there: mkdir .lsp_symlink cd .lsp_symlink ln -s /home home If your user does not have sufficient permissions to traverse the entire path, you will not be able to open the file. A more detailed guide on symlinking (written for a related jupyterlab-go-to-definition extension) is available here.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page