jupyter-lsp / jupyterlab-lsp

Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
https://jupyterlab-lsp.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.82k stars 148 forks source link

Code signature not displaying for imported packages #877

Open Coleej opened 2 years ago

Coleej commented 2 years ago

Description

Code signature does not display when cursor is within a function when imported. Other lsp server function work (hover, code completion, renaming). This occurred with a fresh install of jupyterlab, and jupyterlab-lsp.

Reproduce

  1. Import function or package.
  2. Open function
  3. Wait for code signature to appear

Code signature working for locally defined function image

Code signature not working for imports image

image

Expected behavior

Code signature to appear for imported packages

Context

Required: installed server extensions
Config dir: /home/****/.jupyter

Config dir: /home/****/.mambaforge/envs/jlab-lsp-testing/etc/jupyter
    jupyter_lsp enabled
    - Validating jupyter_lsp...
      jupyter_lsp 1.5.1 OK
    jupyterlab enabled
    - Validating jupyterlab...
      jupyterlab 3.5.0 OK
    nbclassic enabled
    - Validating nbclassic...
      nbclassic 0.4.8 OK
    notebook_shim enabled
    - Validating notebook_shim...
      notebook_shim  OK

Config dir: /usr/local/etc/jupyter
Required: installed lab extensions
JupyterLab v3.5.0
/home/***/.mambaforge/envs/jlab-lsp-testing/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        @krassowski/jupyterlab-lsp v3.10.2 enabled OK (python, jupyterlab-lsp)
Troubleshoot Output
$PATH:
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/bin
        /home/xxxx/.mambaforge/condabin
        /home/xxxx/.local/bin
        /home/xxxx/.config/fzf/bin
        /usr/local/sbin
        /usr/local/bin
        /usr/sbin
        /usr/bin
        /sbin
        /bin
        /usr/games
        /usr/local/games
        /usr/lib/wsl/lib
        /mnt/c/Program Files/WindowsApps/Microsoft.WindowsTerminal_1.15.2874.0_x64__8wekyb3d8bbwe
        /mnt/c/Program Files (x86)/gcc/bin
        /mnt/c/Program Files (x86)/gcc/libexec/gcc/x86_64-w64-mingw32/10.3.0
        /mnt/c/Program Files (x86)/IntelSWTools/compilers_and_libraries_2020.0.166/windows/mpi/intel64/bin
        /mnt/c/WINDOWS/system32
        /mnt/c/WINDOWS
        /mnt/c/WINDOWS/System32/Wbem
        /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0
        /mnt/c/WINDOWS/System32/OpenSSH
        /mnt/c/Program Files/dotnet
        /mnt/c/Program Files/MATLAB/MATLAB Compiler Runtime/v82/runtime/win64
        /mnt/c/Program Files/MATLAB/MATLAB Runtime/v98/runtime/win64
        /mnt/c/Program Files/MATLAB/R2022a/bin
        /mnt/c/Users/xxxxxxxx/AppData/Local/Microsoft/WindowsApps
        /mnt/c/Program Files/MPICH2/bin
        /snap/bin

sys.path:
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/bin
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/lib/python311.zip
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/lib/python3.11
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/lib/python3.11/lib-dynload
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/lib/python3.11/site-packages

sys.executable:
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/bin/python

sys.version:
        3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:24:40) [GCC 10.4.0]

platform.platform():
        Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.31

which -a jupyter:
        /home/xxxx/.mambaforge/envs/jlab-lsp-testing/bin/jupyter

pip list:
        Package                       Version
        ----------------------------- -----------
        anyio                         3.6.2
        argon2-cffi                   21.3.0
        argon2-cffi-bindings          21.2.0
        astroid                       2.12.13
        asttokens                     2.1.0
        attrs                         22.1.0
        autopep8                      1.5.7
        Babel                         2.11.0
        backcall                      0.2.0
        backports.functools-lru-cache 1.6.4
        beautifulsoup4                4.11.1
        bleach                        5.0.1
        brotlipy                      0.7.0
        certifi                       2022.9.24
        cffi                          1.15.1
        charset-normalizer            2.1.1
        colorama                      0.4.6
        comm                          0.1.0
        cryptography                  38.0.3
        debugpy                       1.6.3
        decorator                     5.1.1
        defusedxml                    0.7.1
        dill                          0.3.6
        entrypoints                   0.4
        executing                     1.2.0
        fastjsonschema                2.16.2
        flake8                        3.9.2
        flit_core                     3.8.0
        idna                          3.4
        importlib-metadata            5.0.0
        importlib-resources           5.10.0
        ipykernel                     6.18.0
        ipython                       8.6.0
        ipython-genutils              0.2.0
        isort                         5.10.1
        jedi                          0.18.2
        Jinja2                        3.1.2
        json5                         0.9.5
        jsonschema                    4.17.0
        jupyter_client                7.4.7
        jupyter_core                  5.0.0
        jupyter-lsp                   1.5.1
        jupyter-server                1.23.3
        jupyterlab                    3.5.0
        jupyterlab-lsp                3.10.2
        jupyterlab-pygments           0.2.2
        jupyterlab_server             2.16.3
        lazy-object-proxy             1.8.0
        MarkupSafe                    2.1.1
        matplotlib-inline             0.1.6
        mccabe                        0.6.1
        mistune                       2.0.4
        nbclassic                     0.4.8
        nbclient                      0.7.0
        nbconvert                     7.2.5
        nbformat                      5.7.0
        nest-asyncio                  1.5.6
        notebook                      6.5.2
        notebook_shim                 0.2.2
        numpy                         1.23.5
        packaging                     21.3
        pandas                        1.5.2
        pandocfilters                 1.5.0
        parso                         0.8.3
        pexpect                       4.8.0
        pickleshare                   0.7.5
        pip                           22.3.1
        pkgutil_resolve_name          1.3.10
        platformdirs                  2.5.2
        pluggy                        1.0.0
        prometheus-client             0.15.0
        prompt-toolkit                3.0.33
        psutil                        5.9.4
        ptyprocess                    0.7.0
        pure-eval                     0.2.2
        pycodestyle                   2.7.0
        pycparser                     2.21
        pydocstyle                    6.1.1
        pyflakes                      2.3.1
        Pygments                      2.13.0
        pylint                        2.15.6
        pyOpenSSL                     22.1.0
        pyparsing                     3.0.9
        pyrsistent                    0.19.2
        PySocks                       1.7.1
        python-dateutil               2.8.2
        python-lsp-jsonrpc            1.0.0
        python-lsp-server             1.2.1
        pytoolconfig                  1.2.2
        pytz                          2022.6
        pyzmq                         24.0.1
        requests                      2.28.1
        rope                          1.5.0
        Send2Trash                    1.8.0
        setuptools                    65.5.1
        six                           1.16.0
        sniffio                       1.3.0
        snowballstemmer               2.2.0
        soupsieve                     2.3.2.post1
        stack-data                    0.6.1
        terminado                     0.17.0
        tinycss2                      1.2.1
        toml                          0.10.2
        tomli                         2.0.1
        tomlkit                       0.11.6
        tornado                       6.2
        traitlets                     5.5.0
        typing_extensions             4.4.0
        ujson                         5.5.0
        urllib3                       1.26.11
        wcwidth                       0.2.5
        webencodings                  0.5.1
        websocket-client              1.4.2
        wheel                         0.38.4
        wrapt                         1.14.1
        yapf                          0.32.0
        zipp                          3.10.0

conda list:
        # packages in environment at /home/xxxx/.mambaforge/envs/jlab-lsp-testing:
        #
        # Name                    Version                   Build  Channel
        _libgcc_mutex             0.1                 conda_forge    conda-forge
        _openmp_mutex             4.5                       2_gnu    conda-forge
        anyio                     3.6.2              pyhd8ed1ab_0    conda-forge
        argon2-cffi               21.3.0             pyhd8ed1ab_0    conda-forge
        argon2-cffi-bindings      21.2.0          py311hd4cff14_3    conda-forge
        astroid                   2.12.13         py311h38be061_0    conda-forge
        asttokens                 2.1.0              pyhd8ed1ab_0    conda-forge
        attrs                     22.1.0             pyh71513ae_1    conda-forge
        autopep8                  1.5.7              pyhd8ed1ab_0    conda-forge
        babel                     2.11.0             pyhd8ed1ab_0    conda-forge
        backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
        backports                 1.0                        py_2    conda-forge
        backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
        beautifulsoup4            4.11.1             pyha770c72_0    conda-forge
        bleach                    5.0.1              pyhd8ed1ab_0    conda-forge
        brotlipy                  0.7.0           py311hd4cff14_1005    conda-forge
        bzip2                     1.0.8                h7f98852_4    conda-forge
        ca-certificates           2022.9.24            ha878542_0    conda-forge
        certifi                   2022.9.24          pyhd8ed1ab_0    conda-forge
        cffi                      1.15.1          py311h409f033_2    conda-forge
        charset-normalizer        2.1.1              pyhd8ed1ab_0    conda-forge
        colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
        comm                      0.1.0              pyhd8ed1ab_0    conda-forge
        cryptography              38.0.3          py311h42a1071_0    conda-forge
        debugpy                   1.6.3           py311ha362b79_1    conda-forge
        decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
        defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
        dill                      0.3.6              pyhd8ed1ab_1    conda-forge
        entrypoints               0.4                pyhd8ed1ab_0    conda-forge
        executing                 1.2.0              pyhd8ed1ab_0    conda-forge
        flake8                    3.9.2              pyhd8ed1ab_0    conda-forge
        flit-core                 3.8.0              pyhd8ed1ab_0    conda-forge
        idna                      3.4                pyhd8ed1ab_0    conda-forge
        importlib-metadata        5.0.0              pyha770c72_1    conda-forge
        importlib_resources       5.10.0             pyhd8ed1ab_0    conda-forge
        ipykernel                 6.18.0             pyh210e3f2_0    conda-forge
        ipython                   8.6.0              pyh41d4057_1    conda-forge
        ipython_genutils          0.2.0                      py_1    conda-forge
        isort                     5.10.1             pyhd8ed1ab_0    conda-forge
        jedi                      0.18.2             pyhd8ed1ab_0    conda-forge
        jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
        json5                     0.9.5              pyh9f0ad1d_0    conda-forge
        jsonschema                4.17.0             pyhd8ed1ab_0    conda-forge
        jupyter-lsp               1.5.1              pyhd8ed1ab_0    conda-forge
        jupyter-lsp-python        1.5.1              pyhd8ed1ab_0    conda-forge
        jupyter_client            7.4.7              pyhd8ed1ab_0    conda-forge
        jupyter_core              5.0.0           py311h38be061_0    conda-forge
        jupyter_server            1.23.3             pyhd8ed1ab_0    conda-forge
        jupyterlab                3.5.0              pyhd8ed1ab_0    conda-forge
        jupyterlab-lsp            3.10.2             pyhd8ed1ab_0    conda-forge
        jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
        jupyterlab_server         2.16.3             pyhd8ed1ab_0    conda-forge
        lazy-object-proxy         1.8.0           py311hd4cff14_0    conda-forge
        ld_impl_linux-64          2.39                 hcc3a1bd_1    conda-forge
        libblas                   3.9.0           16_linux64_openblas    conda-forge
        libcblas                  3.9.0           16_linux64_openblas    conda-forge
        libffi                    3.4.2                h7f98852_5    conda-forge
        libgcc-ng                 12.2.0              h65d4601_19    conda-forge
        libgfortran-ng            12.2.0              h69a702a_19    conda-forge
        libgfortran5              12.2.0              h337968e_19    conda-forge
        libgomp                   12.2.0              h65d4601_19    conda-forge
        liblapack                 3.9.0           16_linux64_openblas    conda-forge
        libnsl                    2.0.0                h7f98852_0    conda-forge
        libopenblas               0.3.21          pthreads_h78a6416_3    conda-forge
        libsodium                 1.0.18               h36c2ea0_1    conda-forge
        libsqlite                 3.40.0               h753d276_0    conda-forge
        libstdcxx-ng              12.2.0              h46fd767_19    conda-forge
        libuuid                   2.32.1            h7f98852_1000    conda-forge
        libzlib                   1.2.13               h166bdaf_4    conda-forge
        markupsafe                2.1.1           py311hd4cff14_2    conda-forge
        matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
        mccabe                    0.6.1                      py_1    conda-forge
        mistune                   2.0.4              pyhd8ed1ab_0    conda-forge
        nbclassic                 0.4.8              pyhd8ed1ab_0    conda-forge
        nbclient                  0.7.0              pyhd8ed1ab_0    conda-forge
        nbconvert                 7.2.5              pyhd8ed1ab_0    conda-forge
        nbconvert-core            7.2.5              pyhd8ed1ab_0    conda-forge
        nbconvert-pandoc          7.2.5              pyhd8ed1ab_0    conda-forge
        nbformat                  5.7.0              pyhd8ed1ab_0    conda-forge
        ncurses                   6.3                  h27087fc_1    conda-forge
        nest-asyncio              1.5.6              pyhd8ed1ab_0    conda-forge
        notebook                  6.5.2              pyha770c72_1    conda-forge
        notebook-shim             0.2.2              pyhd8ed1ab_0    conda-forge
        numpy                     1.23.5          py311h7d28db0_0    conda-forge
        openssl                   3.0.7                h166bdaf_0    conda-forge
        packaging                 21.3               pyhd8ed1ab_0    conda-forge
        pandas                    1.5.2           py311h8b32b4d_0    conda-forge
        pandoc                    2.19.2               h32600fe_1    conda-forge
        pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
        parso                     0.8.3              pyhd8ed1ab_0    conda-forge
        pexpect                   4.8.0              pyh1a96a4e_2    conda-forge
        pickleshare               0.7.5                   py_1003    conda-forge
        pip                       22.3.1             pyhd8ed1ab_0    conda-forge
        pkgutil-resolve-name      1.3.10             pyhd8ed1ab_0    conda-forge
        platformdirs              2.5.2              pyhd8ed1ab_1    conda-forge
        pluggy                    1.0.0              pyhd8ed1ab_5    conda-forge
        prometheus_client         0.15.0             pyhd8ed1ab_0    conda-forge
        prompt-toolkit            3.0.33             pyha770c72_0    conda-forge
        psutil                    5.9.4           py311hd4cff14_0    conda-forge
        ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
        pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
        pycodestyle               2.7.0              pyhd8ed1ab_0    conda-forge
        pycparser                 2.21               pyhd8ed1ab_0    conda-forge
        pydocstyle                6.1.1              pyhd8ed1ab_0    conda-forge
        pyflakes                  2.3.1              pyhd8ed1ab_0    conda-forge
        pygments                  2.13.0             pyhd8ed1ab_0    conda-forge
        pylint                    2.15.6             pyhd8ed1ab_0    conda-forge
        pyopenssl                 22.1.0             pyhd8ed1ab_0    conda-forge
        pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
        pyrsistent                0.19.2          py311hd4cff14_0    conda-forge
        pysocks                   1.7.1              pyha2e5f31_6    conda-forge
        python                    3.11.0          ha86cf86_0_cpython    conda-forge
        python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
        python-fastjsonschema     2.16.2             pyhd8ed1ab_0    conda-forge
        python-lsp-jsonrpc        1.0.0              pyhd8ed1ab_0    conda-forge
        python-lsp-server         1.2.1              pyhd8ed1ab_0    conda-forge
        python_abi                3.11                    3_cp311    conda-forge
        pytoolconfig              1.2.2              pyhd8ed1ab_0    conda-forge
        pytz                      2022.6             pyhd8ed1ab_0    conda-forge
        pyzmq                     24.0.1          py311ha4b6469_1    conda-forge
        readline                  8.1.2                h0f457ee_0    conda-forge
        requests                  2.28.1             pyhd8ed1ab_1    conda-forge
        rope                      1.5.0              pyhd8ed1ab_0    conda-forge
        send2trash                1.8.0              pyhd8ed1ab_0    conda-forge
        setuptools                65.5.1             pyhd8ed1ab_0    conda-forge
        six                       1.16.0             pyh6c4a22f_0    conda-forge
        sniffio                   1.3.0              pyhd8ed1ab_0    conda-forge
        snowballstemmer           2.2.0              pyhd8ed1ab_0    conda-forge
        soupsieve                 2.3.2.post1        pyhd8ed1ab_0    conda-forge
        stack_data                0.6.1              pyhd8ed1ab_0    conda-forge
        terminado                 0.17.0             pyh41d4057_0    conda-forge
        tinycss2                  1.2.1              pyhd8ed1ab_0    conda-forge
        tk                        8.6.12               h27826a3_0    conda-forge
        toml                      0.10.2             pyhd8ed1ab_0    conda-forge
        tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
        tomlkit                   0.11.6             pyha770c72_0    conda-forge
        tornado                   6.2             py311hd4cff14_1    conda-forge
        traitlets                 5.5.0              pyhd8ed1ab_0    conda-forge
        typing                    3.10.0.0           pyhd8ed1ab_0    conda-forge
        typing-extensions         4.4.0                hd8ed1ab_0    conda-forge
        typing_extensions         4.4.0              pyha770c72_0    conda-forge
        tzdata                    2022f                h191b570_0    conda-forge
        ujson                     5.5.0           py311ha362b79_1    conda-forge
        urllib3                   1.26.11            pyhd8ed1ab_0    conda-forge
        wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
        webencodings              0.5.1                      py_1    conda-forge
        websocket-client          1.4.2              pyhd8ed1ab_0    conda-forge
        wheel                     0.38.4             pyhd8ed1ab_0    conda-forge
        wrapt                     1.14.1          py311hd4cff14_1    conda-forge
        xz                        5.2.6                h166bdaf_0    conda-forge
        yapf                      0.32.0             pyhd8ed1ab_0    conda-forge
        zeromq                    4.3.4                h9c3ff4c_1    conda-forge
        zipp                      3.10.0             pyhd8ed1ab_0    conda-forge

conda env:
        name: jlab-lsp-testing
        channels:
          - conda-forge
        dependencies:
          - _libgcc_mutex=0.1=conda_forge
          - _openmp_mutex=4.5=2_gnu
          - anyio=3.6.2=pyhd8ed1ab_0
          - argon2-cffi=21.3.0=pyhd8ed1ab_0
          - argon2-cffi-bindings=21.2.0=py311hd4cff14_3
          - astroid=2.12.13=py311h38be061_0
          - asttokens=2.1.0=pyhd8ed1ab_0
          - attrs=22.1.0=pyh71513ae_1
          - autopep8=1.5.7=pyhd8ed1ab_0
          - babel=2.11.0=pyhd8ed1ab_0
          - backcall=0.2.0=pyh9f0ad1d_0
          - backports=1.0=py_2
          - backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
          - beautifulsoup4=4.11.1=pyha770c72_0
          - bleach=5.0.1=pyhd8ed1ab_0
          - brotlipy=0.7.0=py311hd4cff14_1005
          - bzip2=1.0.8=h7f98852_4
          - ca-certificates=2022.9.24=ha878542_0
          - certifi=2022.9.24=pyhd8ed1ab_0
          - cffi=1.15.1=py311h409f033_2
          - charset-normalizer=2.1.1=pyhd8ed1ab_0
          - colorama=0.4.6=pyhd8ed1ab_0
          - comm=0.1.0=pyhd8ed1ab_0
          - cryptography=38.0.3=py311h42a1071_0
          - debugpy=1.6.3=py311ha362b79_1
          - decorator=5.1.1=pyhd8ed1ab_0
          - defusedxml=0.7.1=pyhd8ed1ab_0
          - dill=0.3.6=pyhd8ed1ab_1
          - entrypoints=0.4=pyhd8ed1ab_0
          - executing=1.2.0=pyhd8ed1ab_0
          - flake8=3.9.2=pyhd8ed1ab_0
          - flit-core=3.8.0=pyhd8ed1ab_0
          - idna=3.4=pyhd8ed1ab_0
          - importlib-metadata=5.0.0=pyha770c72_1
          - importlib_resources=5.10.0=pyhd8ed1ab_0
          - ipykernel=6.18.0=pyh210e3f2_0
          - ipython=8.6.0=pyh41d4057_1
          - ipython_genutils=0.2.0=py_1
          - isort=5.10.1=pyhd8ed1ab_0
          - jedi=0.18.2=pyhd8ed1ab_0
          - jinja2=3.1.2=pyhd8ed1ab_1
          - json5=0.9.5=pyh9f0ad1d_0
          - jsonschema=4.17.0=pyhd8ed1ab_0
          - jupyter-lsp=1.5.1=pyhd8ed1ab_0
          - jupyter-lsp-python=1.5.1=pyhd8ed1ab_0
          - jupyter_client=7.4.7=pyhd8ed1ab_0
          - jupyter_core=5.0.0=py311h38be061_0
          - jupyter_server=1.23.3=pyhd8ed1ab_0
          - jupyterlab=3.5.0=pyhd8ed1ab_0
          - jupyterlab-lsp=3.10.2=pyhd8ed1ab_0
          - jupyterlab_pygments=0.2.2=pyhd8ed1ab_0
          - jupyterlab_server=2.16.3=pyhd8ed1ab_0
          - lazy-object-proxy=1.8.0=py311hd4cff14_0
          - ld_impl_linux-64=2.39=hcc3a1bd_1
          - libblas=3.9.0=16_linux64_openblas
          - libcblas=3.9.0=16_linux64_openblas
          - libffi=3.4.2=h7f98852_5
          - libgcc-ng=12.2.0=h65d4601_19
          - libgfortran-ng=12.2.0=h69a702a_19
          - libgfortran5=12.2.0=h337968e_19
          - libgomp=12.2.0=h65d4601_19
          - liblapack=3.9.0=16_linux64_openblas
          - libnsl=2.0.0=h7f98852_0
          - libopenblas=0.3.21=pthreads_h78a6416_3
          - libsodium=1.0.18=h36c2ea0_1
          - libsqlite=3.40.0=h753d276_0
          - libstdcxx-ng=12.2.0=h46fd767_19
          - libuuid=2.32.1=h7f98852_1000
          - libzlib=1.2.13=h166bdaf_4
          - markupsafe=2.1.1=py311hd4cff14_2
          - matplotlib-inline=0.1.6=pyhd8ed1ab_0
          - mccabe=0.6.1=py_1
          - mistune=2.0.4=pyhd8ed1ab_0
          - nbclassic=0.4.8=pyhd8ed1ab_0
          - nbclient=0.7.0=pyhd8ed1ab_0
          - nbconvert=7.2.5=pyhd8ed1ab_0
          - nbconvert-core=7.2.5=pyhd8ed1ab_0
          - nbconvert-pandoc=7.2.5=pyhd8ed1ab_0
          - nbformat=5.7.0=pyhd8ed1ab_0
          - ncurses=6.3=h27087fc_1
          - nest-asyncio=1.5.6=pyhd8ed1ab_0
          - notebook=6.5.2=pyha770c72_1
          - notebook-shim=0.2.2=pyhd8ed1ab_0
          - numpy=1.23.5=py311h7d28db0_0
          - openssl=3.0.7=h166bdaf_0
          - packaging=21.3=pyhd8ed1ab_0
          - pandas=1.5.2=py311h8b32b4d_0
          - pandoc=2.19.2=h32600fe_1
          - pandocfilters=1.5.0=pyhd8ed1ab_0
          - parso=0.8.3=pyhd8ed1ab_0
          - pexpect=4.8.0=pyh1a96a4e_2
          - pickleshare=0.7.5=py_1003
          - pip=22.3.1=pyhd8ed1ab_0
          - pkgutil-resolve-name=1.3.10=pyhd8ed1ab_0
          - platformdirs=2.5.2=pyhd8ed1ab_1
          - pluggy=1.0.0=pyhd8ed1ab_5
          - prometheus_client=0.15.0=pyhd8ed1ab_0
          - prompt-toolkit=3.0.33=pyha770c72_0
          - psutil=5.9.4=py311hd4cff14_0
          - ptyprocess=0.7.0=pyhd3deb0d_0
          - pure_eval=0.2.2=pyhd8ed1ab_0
          - pycodestyle=2.7.0=pyhd8ed1ab_0
          - pycparser=2.21=pyhd8ed1ab_0
          - pydocstyle=6.1.1=pyhd8ed1ab_0
          - pyflakes=2.3.1=pyhd8ed1ab_0
          - pygments=2.13.0=pyhd8ed1ab_0
          - pylint=2.15.6=pyhd8ed1ab_0
          - pyopenssl=22.1.0=pyhd8ed1ab_0
          - pyparsing=3.0.9=pyhd8ed1ab_0
          - pyrsistent=0.19.2=py311hd4cff14_0
          - pysocks=1.7.1=pyha2e5f31_6
          - python=3.11.0=ha86cf86_0_cpython
          - python-dateutil=2.8.2=pyhd8ed1ab_0
          - python-fastjsonschema=2.16.2=pyhd8ed1ab_0
          - python-lsp-jsonrpc=1.0.0=pyhd8ed1ab_0
          - python-lsp-server=1.2.1=pyhd8ed1ab_0
          - python_abi=3.11=3_cp311
          - pytoolconfig=1.2.2=pyhd8ed1ab_0
          - pytz=2022.6=pyhd8ed1ab_0
          - pyzmq=24.0.1=py311ha4b6469_1
          - readline=8.1.2=h0f457ee_0
          - requests=2.28.1=pyhd8ed1ab_1
          - rope=1.5.0=pyhd8ed1ab_0
          - send2trash=1.8.0=pyhd8ed1ab_0
          - setuptools=65.5.1=pyhd8ed1ab_0
          - six=1.16.0=pyh6c4a22f_0
          - sniffio=1.3.0=pyhd8ed1ab_0
          - snowballstemmer=2.2.0=pyhd8ed1ab_0
          - soupsieve=2.3.2.post1=pyhd8ed1ab_0
          - stack_data=0.6.1=pyhd8ed1ab_0
          - terminado=0.17.0=pyh41d4057_0
          - tinycss2=1.2.1=pyhd8ed1ab_0
          - tk=8.6.12=h27826a3_0
          - toml=0.10.2=pyhd8ed1ab_0
          - tomli=2.0.1=pyhd8ed1ab_0
          - tomlkit=0.11.6=pyha770c72_0
          - tornado=6.2=py311hd4cff14_1
          - traitlets=5.5.0=pyhd8ed1ab_0
          - typing=3.10.0.0=pyhd8ed1ab_0
          - typing-extensions=4.4.0=hd8ed1ab_0
          - typing_extensions=4.4.0=pyha770c72_0
          - tzdata=2022f=h191b570_0
          - ujson=5.5.0=py311ha362b79_1
          - urllib3=1.26.11=pyhd8ed1ab_0
          - wcwidth=0.2.5=pyh9f0ad1d_2
          - webencodings=0.5.1=py_1
          - websocket-client=1.4.2=pyhd8ed1ab_0
          - wheel=0.38.4=pyhd8ed1ab_0
          - wrapt=1.14.1=py311hd4cff14_1
          - xz=5.2.6=h166bdaf_0
          - yapf=0.32.0=pyhd8ed1ab_0
          - zeromq=4.3.4=h9c3ff4c_1
          - zipp=3.10.0=pyhd8ed1ab_0
        prefix: /home/xxxx/.mambaforge/envs/jlab-lsp-testing.
Command Line Output

Too many characters.  I can upload a text file if it helps.

Coleej commented 2 years ago

Another observation: The signature for local functions only appears if they are used on line 3 or greater in a cell.

image

image

krassowski commented 2 years ago

Hi @Coleej thanks for reporting. This is due to a change in JupyterLab 3.4.7 (I am guilty) which required some changes in this extension. This is already fixed by https://github.com/jupyter-lsp/jupyterlab-lsp/pull/857 but I did not get enough time to release a new version - sorry! It is on my agenda, and it's usually easier to find time in the upcoming holiday season.

krassowski commented 2 years ago

Just to clarify this just relates to the algorithm for placement of the hover box; there is no distinction between imported packages or functions defined in a notebook as far as this extension is concerned, so either it just happened that you were trying to use imported functions it in the first two lines or it is a server problem.

Coleej commented 2 years ago

@krassowski, the hover box for completion appears correctly (I think) on the first line for imported/local functions, but the signature only appears for local functions on the 3rd line or lower. Also builtin functions do not show signatures.

image


image


image


image


image

If this server problem, do you have advice/direction on troubleshooting? I tested on Chrome and Edge, but my work's IT won't let me install firefox :(