-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is "python-markdown" and how to install it? #1040
Comments
There is no |
There above it says that Markdown is missing ;) It says python-markdown in the tooltip because a markdown document is embedded in a Python notebook. Though I guess the statusbar item should be less verbose. |
In earlier versions there was no message saying that a markdown server was missing. Also, now the python lsp server complains that there are too many blank lines between code lines. I suppose this is because it doesn't see the markdown cells? |
Oh yeah, this is a new feature since JupyterLab 4+ compatible versions. Previously there was no support for Markdown cells. Now you can get syntax errors, grammar checks etc when you have a suitable server installed.
No, that would be unrelated. Can you post a specific example? |
The above error is discussed in the other issue, #1054 . Very irritating code highlighting. |
Is there such a LSP server for markdown? On https://jupyterlab-lsp.readthedocs.io/en/latest/Language%20Servers.html it is suggested to use unified-language-server, installable as dev dependcy with npm/yarn. This would mean a rebuild of jupyterlab, right? Any other solution (the ideal would be a python markdown lsp sever). |
@krassowski Just read on the doc
I have added that trait to my server |
@echarles yes,
No, this is not required.
It might be that a new version of jupyterlab-lsp/python_packages/jupyter_lsp/jupyter_lsp/types.py Lines 216 to 235 in b159ae2
so running with jupyterlab-lsp/python_packages/jupyter_lsp/jupyter_lsp/specs/unified_language_server.py Lines 4 to 7 in b159ae2
|
I quickly looks for python ones but did not find. @fcollonval pointed me to the vscode (nodejs) one https://github.com/microsoft/vscode/tree/main/extensions/markdown-language-features/server which would require additional config as documented on https://jupyterlab-lsp.readthedocs.io/en/latest/Configuring.html#language-servers
Pinning and pointing to the folder above the node_modules made it work but clicking on TAB in a markdown cell or document does nothing... |
When I click on TAB in a Markdown content, I see the following log, but nothing shows up (btw the LSP autocomplete for python works fine).
|
Not every language serer implements Tab completion. |
The VScode one does implement completions but only for links as per https://github.com/microsoft/vscode/tree/main/extensions/markdown-language-features/server#server-capabilities |
Thx a lot @krassowski for the explanation. I get indeed spell check working and may try later the vscode one for completion. |
It took me a hard time to figure out that the version should be 0.3.0. The release tags of It turns out that the newer class RemarkLanguageServer(NodeModuleSpec):
node_module = key = "remark-language-server"
script = ["index.js"]
args = ["--stdio"] @krassowski Do you like the newer version to replace the old |
Sounds sensible, thank you for looking into this! |
What I have done...
I have installed Jupterlab 4.0.10 in a virtual environment (managed by Poetry). I have installed the latest version of jupyterlab-lsp (5.0.2) and the latest version of python-lsp-server (1.9.0) with all extras, exactly in the way as it is described in the README file of the repository.
When jupyterlab has been launched and a notebook has been opened, a label appears in the status bar at the bottom of the window with the text "Initialized (additional servers needed)". When I click on this label a popup opens, saying that python-lsp-server is running, but one LSP server is missing, referring to markdown. When I hover over the label in the status bar the following text appears: "1/2 virtual documents connected (1 connections; waiting for: python-markdown).
What I am trying to do...
I want to install the additional server python-markdown.
How I would like to learn how to do it...
Since I have no clue where to look for this missing server python-markdown and since I can't find any clear answer after browsing for more than one hour in the docs about jupyterlab-lsp and also further on the web, I would like to ask this question to the developers: "Where can I get the LSP server python-markdown and how do I need to install this?"
The text was updated successfully, but these errors were encountered: