Skip to content
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

Add _jupyter_server_extension_points in __init__.py #1032

Closed
krassowski opened this issue Dec 17, 2023 · 0 comments · Fixed by #1035
Closed

Add _jupyter_server_extension_points in __init__.py #1032

krassowski opened this issue Dec 17, 2023 · 0 comments · Fixed by #1035

Comments

@krassowski
Copy link
Member

Description

Jupyter Server, in recent versions, expects to find a _jupyter_server_extension_points function in jupyter_lsp. It falls back to using the _jupyter_server_extension_paths function, but warns that that function name will be deprecated in future releases of Jupyter Server.

Reproduce

  1. Launch JupyterLab.
  2. In the logs, see this warning:
[W 2023-12-15 12:34:56.789 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. 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.

Expected behavior

No warning.

Context

  • Operating System and version: Ubuntu 22.04.3 LTS
  • Browser and version: Firefox 120.0.1
  • Jupyter Server version: 2.12.1
Troubleshoot Output
$ jupyter troubleshoot
$PATH:
    /home/user/mambaforge/condabin
    /usr/local/sbin
    /usr/local/bin
    /usr/sbin
    /usr/bin
    /sbin
    /bin
    /usr/games
    /usr/local/games
    /snap/bin

sys.path:
/usr/bin
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/home/s/.local/lib/python3.10/site-packages
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.10/dist-packages

sys.executable:
/usr/bin/python3

sys.version:
3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

platform.platform():
Linux-6.5.0-14-generic-x86_64-with-glibc2.35

which -a jupyter:
/usr/bin/jupyter
/bin/jupyter

pip list:
Package Version
---------------------- ----------------
anyio 3.6.2
appdirs 1.4.4
apturl 0.5.2
argon2-cffi 21.1.0
attrs 21.2.0
Babel 2.8.0
backcall 0.2.0
bcrypt 3.2.0
beautifulsoup4 4.10.0
beniget 0.4.1
bleach 4.1.0
blinker 1.4
bqplot 0.12.36
brial 1.0.2
Brlapi 0.8.3
Brotli 1.0.9
caffeine 2.9.8
certifi 2020.6.20
chardet 4.0.0
chrome-gnome-shell 0.0.0
click 8.0.3
colorama 0.4.4
command-not-found 0.3
cryptography 3.4.8
cupshelpers 1.0
cycler 0.11.0
dbus-python 1.2.18
debugpy 1.6.3
decorator 4.4.2
defer 1.0.6
defusedxml 0.7.1
distlib 0.3.4
distro 1.7.0
distro-info 1.1+ubuntu0.2
duplicity 0.8.21
entrypoints 0.4
ewmh 0.1.6
fasteners 0.14.1
fastjsonschema 2.16.2
filelock 3.6.0
fonttools 4.29.1
fs 2.4.12
future 0.18.2
gast 0.4.0
html5lib 1.1
httplib2 0.20.2
idna 3.3
ifaddr 0.1.7
importlib-metadata 4.6.4
ipydatagrid 1.1.13
ipykernel 6.7.0
ipython 7.31.1
ipython_genutils 0.2.0
ipywidgets 8.0.2
jedi 0.18.0
jeepney 0.7.1
Jinja2 3.0.3
json5 0.9.10
jsonschema 3.2.0
jupyter-client 7.1.2
jupyter-console 6.4.0
jupyter-core 4.9.1
jupyterlab-pygments 0.1.2
jupyterlab_server 2.16.2
jupyterlab-widgets 3.0.3
keyring 23.5.0
kiwisolver 1.3.2
language-selector 0.1
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
lockfile 0.12.2
louis 3.20.0
lxml 4.8.0
lz4 3.1.3+dfsg
macaroonbakery 1.3.1
Mako 1.1.3
MarkupSafe 2.0.1
matplotlib 3.5.1
matplotlib-inline 0.1.3
mdurl 0.1.2
monotonic 1.6
more-itertools 8.10.0
mpmath 0.0.0
nbclassic 0.4.8
nbclient 0.5.6
nbconvert 6.4.0
nbformat 5.7.0
nbgrader 0.9.0a1
nest-asyncio 1.5.4
netifaces 0.11.0
notebook 6.4.8
notebook_shim 0.2.2
notify2 0.3
numpy 1.21.5
numpy-stl 2.8.0
oauthlib 3.2.0
olefile 0.46
packaging 21.3
pandas 1.5.1
pandocfilters 1.5.0
paramiko 2.9.3
parso 0.8.1
pexpect 4.8.0
pickleshare 0.7.5
Pillow 9.0.1
pip 22.0.2
platformdirs 2.5.1
pluggy 0.13.0
ply 3.11
prometheus-client 0.9.0
prompt-toolkit 3.0.28
protobuf 3.12.4
ptyprocess 0.7.0
py 1.10.0
py2vega 0.6.1
pycairo 1.20.1
pycups 2.0.1
Pygments 2.11.2
PyGObject 3.42.1
PyJWT 2.3.0
pymacaroons 0.13.0
PyNaCl 1.5.0
pyparsing 2.4.7
PyQt5 5.15.6
PyQt5-sip 12.9.1
pyRFC3339 1.1
pyrsistent 0.18.1
pyserial 3.5
python-apt 2.4.0+ubuntu2
python-dateutil 2.8.1
python-debian 0.1.43+ubuntu1.1
python-utils 2.2.0
python-xlib 0.29
pythran 0.10.0
pytz 2022.1
pyxdg 0.27
PyYAML 5.4.1
pyzmq 22.3.0
requests 2.25.1
scan_markyng 0.2
scipy 1.8.0
scour 0.38.2
SecretStorage 3.3.1
Send2Trash 1.8.1b0
sentry-sdk 1.4.3
setuptools 59.6.0
Shapely 1.8.0
six 1.16.0
sniffio 1.3.0
soupsieve 2.3.1
ssh-import-id 5.11
sympy 1.9
systemd-python 234
terminado 0.13.1
testpath 0.5.0
tinycss2 1.2.1
toml 0.10.2
tomli 2.0.1
tornado 6.1
tox 3.21.4
traitlets 5.1.1
traittypes 0.2.1
ubuntu-advantage-tools 8001
ubuntu-drivers-common 0.0.0
ufoLib2 0.13.1
ufw 0.36.1
unattended-upgrades 0.1
unicodedata2 14.0.0
urllib3 1.26.5
usb-creator 0.3.7
virtualenv 20.13.0+ds
wadllib 1.3.6
wcwidth 0.2.5
webencodings 0.5.1
websocket-client 1.4.2
wheel 0.37.1
widgetsnbextension 4.0.3
xdg 5
xkit 0.0.0
zeroconf 0.38.3
zipp 1.0.0

conda list:
# packages in environment at /home/s/mambaforge:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
boltons 23.0.0 pyhd8ed1ab_0 conda-forge
brotlipy 0.7.0 py311hd4cff14_1005 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
c-ares 1.18.1 h7f98852_0 conda-forge
ca-certificates 2023.5.7 hbcca054_0 conda-forge
certifi 2023.5.7 pyhd8ed1ab_0 conda-forge
cffi 1.15.1 py311h409f033_3 conda-forge
charset-normalizer 3.1.0 pyhd8ed1ab_0 conda-forge
colorama 0.4.6 pyhd8ed1ab_0 conda-forge
conda 23.5.2 py311h38be061_0 conda-forge
conda-package-handling 2.0.2 pyh38be061_0 conda-forge
conda-package-streaming 0.7.0 pyhd8ed1ab_1 conda-forge
cryptography 40.0.2 py311h9b4c7bb_0 conda-forge
fmt 9.1.0 h924138e_0 conda-forge
icu 72.1 hcb278e6_0 conda-forge
idna 3.4 pyhd8ed1ab_0 conda-forge
jsonpatch 1.32 pyhd8ed1ab_0 conda-forge
jsonpointer 2.0 py_0 conda-forge
keyutils 1.6.1 h166bdaf_0 conda-forge
krb5 1.20.1 h81ceb04_0 conda-forge
ld_impl_linux-64 2.40 h41732ed_0 conda-forge
libarchive 3.6.2 h3d51595_0 conda-forge
libcurl 8.1.2 h409715c_0 conda-forge
libedit 3.1.20191231 he28a2e2_2 conda-forge
libev 4.33 h516909a_1 conda-forge
libexpat 2.5.0 hcb278e6_1 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 12.2.0 h65d4601_19 conda-forge
libgomp 12.2.0 h65d4601_19 conda-forge
libiconv 1.17 h166bdaf_0 conda-forge
libmamba 1.4.9 h658169a_0 conda-forge
libmambapy 1.4.9 py311h527f279_0 conda-forge
libnghttp2 1.52.0 h61bc06f_0 conda-forge
libnsl 2.0.0 h7f98852_0 conda-forge
libsolv 0.7.24 hfc55251_1 conda-forge
libsqlite 3.42.0 h2797004_0 conda-forge
libssh2 1.10.0 hf14f497_3 conda-forge
libstdcxx-ng 12.2.0 h46fd767_19 conda-forge
libuuid 2.38.1 h0b41bf4_0 conda-forge
libxml2 2.10.3 hfdac1af_6 conda-forge
libzlib 1.2.13 h166bdaf_4 conda-forge
lz4-c 1.9.4 hcb278e6_0 conda-forge
lzo 2.10 h516909a_1000 conda-forge
mamba 1.4.9 py311h3072747_0 conda-forge
ncurses 6.4 hcb278e6_0 conda-forge
openssl 3.1.1 hd590300_1 conda-forge
packaging 23.1 pyhd8ed1ab_0 conda-forge
pip 23.0.1 pyhd8ed1ab_0 conda-forge
pluggy 1.0.0 pyhd8ed1ab_5 conda-forge
pybind11-abi 4 hd8ed1ab_3 conda-forge
pycosat 0.6.4 py311hd4cff14_1 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pyopenssl 23.1.1 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 pyha2e5f31_6 conda-forge
python 3.11.4 hab00c5b_0_cpython conda-forge
python_abi 3.11 3_cp311 conda-forge
readline 8.2 h8228510_1 conda-forge
reproc 14.2.4 h0b41bf4_0 conda-forge
reproc-cpp 14.2.4 hcb278e6_0 conda-forge
requests 2.28.2 pyhd8ed1ab_1 conda-forge
ruamel.yaml 0.17.32 py311h459d7ec_0 conda-forge
ruamel.yaml.clib 0.2.7 py311h2582759_1 conda-forge
setuptools 65.6.3 pyhd8ed1ab_0 conda-forge
tk 8.6.12 h27826a3_0 conda-forge
toolz 0.12.0 pyhd8ed1ab_0 conda-forge
tqdm 4.65.0 pyhd8ed1ab_1 conda-forge
tzdata 2023c h71feb2d_0 conda-forge
urllib3 1.26.15 pyhd8ed1ab_0 conda-forge
wheel 0.40.0 pyhd8ed1ab_0 conda-forge
xz 5.2.6 h166bdaf_0 conda-forge
yaml-cpp 0.7.0 h27087fc_2 conda-forge
zstandard 0.19.0 py311hbe0fcd7_1 conda-forge
zstd 1.5.2 h3eb15da_6 conda-forge

conda env:
name: base
channels:
- conda-forge
dependencies:
- _libgcc_mutex=0.1=conda_forge
- _openmp_mutex=4.5=2_gnu
- boltons=23.0.0=pyhd8ed1ab_0
- brotlipy=0.7.0=py311hd4cff14_1005
- bzip2=1.0.8=h7f98852_4
- c-ares=1.18.1=h7f98852_0
- ca-certificates=2023.5.7=hbcca054_0
- certifi=2023.5.7=pyhd8ed1ab_0
- cffi=1.15.1=py311h409f033_3
- charset-normalizer=3.1.0=pyhd8ed1ab_0
- colorama=0.4.6=pyhd8ed1ab_0
- conda=23.5.2=py311h38be061_0
- conda-package-handling=2.0.2=pyh38be061_0
- conda-package-streaming=0.7.0=pyhd8ed1ab_1
- cryptography=40.0.2=py311h9b4c7bb_0
- fmt=9.1.0=h924138e_0
- icu=72.1=hcb278e6_0
- idna=3.4=pyhd8ed1ab_0
- jsonpatch=1.32=pyhd8ed1ab_0
- jsonpointer=2.0=py_0
- keyutils=1.6.1=h166bdaf_0
- krb5=1.20.1=h81ceb04_0
- ld_impl_linux-64=2.40=h41732ed_0
- libarchive=3.6.2=h3d51595_0
- libcurl=8.1.2=h409715c_0
- libedit=3.1.20191231=he28a2e2_2
- libev=4.33=h516909a_1
- libexpat=2.5.0=hcb278e6_1
- libffi=3.4.2=h7f98852_5
- libgcc-ng=12.2.0=h65d4601_19
- libgomp=12.2.0=h65d4601_19
- libiconv=1.17=h166bdaf_0
- libmamba=1.4.9=h658169a_0
- libmambapy=1.4.9=py311h527f279_0
- libnghttp2=1.52.0=h61bc06f_0
- libnsl=2.0.0=h7f98852_0
- libsolv=0.7.24=hfc55251_1
- libsqlite=3.42.0=h2797004_0
- libssh2=1.10.0=hf14f497_3
- libstdcxx-ng=12.2.0=h46fd767_19
- libuuid=2.38.1=h0b41bf4_0
- libxml2=2.10.3=hfdac1af_6
- libzlib=1.2.13=h166bdaf_4
- lz4-c=1.9.4=hcb278e6_0
- lzo=2.10=h516909a_1000
- mamba=1.4.9=py311h3072747_0
- ncurses=6.4=hcb278e6_0
- openssl=3.1.1=hd590300_1
- packaging=23.1=pyhd8ed1ab_0
- pip=23.0.1=pyhd8ed1ab_0
- pluggy=1.0.0=pyhd8ed1ab_5
- pybind11-abi=4=hd8ed1ab_3
- pycosat=0.6.4=py311hd4cff14_1
- pycparser=2.21=pyhd8ed1ab_0
- pyopenssl=23.1.1=pyhd8ed1ab_0
- pysocks=1.7.1=pyha2e5f31_6
- python=3.11.4=hab00c5b_0_cpython
- python_abi=3.11=3_cp311
- readline=8.2=h8228510_1
- reproc=14.2.4=h0b41bf4_0
- reproc-cpp=14.2.4=hcb278e6_0
- requests=2.28.2=pyhd8ed1ab_1
- ruamel.yaml=0.17.32=py311h459d7ec_0
- ruamel.yaml.clib=0.2.7=py311h2582759_1
- setuptools=65.6.3=pyhd8ed1ab_0
- tk=8.6.12=h27826a3_0
- toolz=0.12.0=pyhd8ed1ab_0
- tqdm=4.65.0=pyhd8ed1ab_1
- tzdata=2023c=h71feb2d_0
- urllib3=1.26.15=pyhd8ed1ab_0
- wheel=0.40.0=pyhd8ed1ab_0
- xz=5.2.6=h166bdaf_0
- yaml-cpp=0.7.0=h27087fc_2
- zstandard=0.19.0=py311hbe0fcd7_1
- zstd=1.5.2=h3eb15da_6
prefix: /home/s/mambaforge

Command Line Output
...
[W 2023-12-15 12:34:56.789 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. 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.
...
Browser Output Not applicable.

Originally reported by @slel in jupyter-server org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant