Description
Description
when opening parentheses triggers the signature, the default behavior of lsp appears to be to show an extra tooltip (in addition to default completer), which obscures the code being typed and the completions.
As a result, I have to be constantly hitting escape, every time I open parentheses or type any number of other completion or inspection-triggering keys.
It's unclear to me if this is an lsp problem or a jupyterlab problem, but both of these behaviors seem incorrect:
- there shouldn't be two tooltips at once
- tooltips shouldn't ever obscure the cursor
Reproduce
- open notebook
- type
import requests requests.get(
- see cursor and completer hidden behind inspection tooltip:
Screen.Recording.2024-09-16.at.13.03.17.mov
Expected behavior
- Tooltips don't obscure code
- No more than one tooltip at a time
Context
- Operating System and version: browser: macOS 14.6.1, server: ubuntu 22.04
- Browser and version: Safari 17.6
- JupyterLab version: 4.2.4
- Language server and version: jupyter-lsp 2.2.5, jupyterlab-lsp 5.1.0
Required: installed server extensions
Config dir: /home/jovyan/.jupyterConfig dir: /srv/conda/envs/notebook/etc/jupyter
dask_labextension enabled
- Validating dask_labextension...
Extension package dask_labextension took 0.2798s to import
A_jupyter_server_extension_points
function was not found in dask_labextension. Instead, a_jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
dask_labextension 7.0.0 OK
jupyter_lsp enabled
- Validating jupyter_lsp...
jupyter_lsp 2.2.5 OK
jupyter_server_proxy enabled
- Validating jupyter_server_proxy...
jupyter_server_proxy 4.3.0 OK
jupyter_keepalive enabled
- Validating jupyter_keepalive...
jupyter_keepalive 0.3.0 OK
jupyter_resource_usage enabled
- Validating jupyter_resource_usage...
jupyter_resource_usage 1.1.0 OK
jupyter_server_mathjax enabled
- Validating jupyter_server_mathjax...
jupyter_server_mathjax OK
jupyter_server_terminals enabled
- Validating jupyter_server_terminals...
jupyter_server_terminals 0.5.3 OK
jupyter_server_xarray_leaflet enabled
- Validating jupyter_server_xarray_leaflet...
A_jupyter_server_extension_points
function was not found in jupyter_server_xarray_leaflet. Instead, a_jupyter_server_extension_paths
function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
jupyter_server_xarray_leaflet 0.2.3 OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 4.2.4 OK
jupyterlab_code_formatter enabled
- Validating jupyterlab_code_formatter...
jupyterlab_code_formatter 3.0.2 OK
jupyterlab_git enabled
- Validating jupyterlab_git...
jupyterlab_git 0.50.1 OK
jupyterlab_myst enabled
- Validating jupyterlab_myst...
jupyterlab_myst 2.4.2 OK
nbdime enabled
- Validating nbdime...
nbdime 4.0.1 OK
nbgitpuller enabled
- Validating nbgitpuller...
nbgitpuller 1.2.1 OK
notebook enabled
- Validating notebook...
notebook 7.2.1 OK
notebook_shim enabled
- Validating notebook_shim...
notebook_shim OK
panel.io.jupyter_server_extension enabled
- Validating panel.io.jupyter_server_extension...
Extension package panel.io.jupyter_server_extension took 0.8595s to import
panel.io.jupyter_server_extension OKConfig dir: /usr/local/etc/jupyter
Required: installed lab extensions
JupyterLab v4.2.4 /srv/conda/envs/notebook/share/jupyter/labextensions jupyter-matplotlib v0.11.4 enabled OK anywidget v0.9.13 enabled OK ipytree v0.2.2 enabled OK jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments) jupyterlab_code_formatter v3.0.2 enabled OK (python, jupyterlab_code_formatter) jupyter-leaflet v0.19.2 enabled OK ipyurl v0.1.2 enabled X (python, ipyurl) jupyterlab-myst v2.4.2 enabled OK (python, jupyterlab_myst) nbdime-jupyterlab v3.0.1 enabled OK dask-labextension v7.0.0 enabled OK (python, dask_labextension) ipyspin v1.0.0 enabled OK @jupyterlab/git v0.50.1 enabled OK (python, jupyterlab-git) @jupyter-lsp/jupyterlab-lsp v5.1.0 enabled OK (python, jupyterlab-lsp) @jupyter-widgets/jupyterlab-manager v5.0.11 enabled OK (python, jupyterlab_widgets) @pyviz/jupyterlab_pyviz v3.0.3 enabled OK @jupyter-server/resource-usage v1.1.0 enabled OK (python, jupyter-resource-usage) @jupyter-notebook/lab-extension v7.2.1 enabled OK @jupyterhub/jupyter-server-proxy v4.3.0 enabled OK @minrk/jupyter-keepalive v0.3.0 enabled OK/home/jovyan/.local/share/jupyter/labextensions
jupyter-fs v0.4.1 enabled OK (python, jupyter-fs)The following extensions may be outdated or specify dependencies that are incompatible with the current version of jupyterlab:
ipyurlIf you are a user, check if an update is available for these packages.
If you are a developer, re-run with--verbose
flag for more details.Disabled extensions:
@jupyterlab/apputils-extension:announcements
@jupyterlab/completer-extension:base-service
@jupyterlab/fileeditor-extension:language-server
@jupyterlab/notebook-extension:language-server