You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ArchLinux下Jupyter扩展函数未找到警告的解决方法咨询

解决Jupyter扩展的弃用警告问题

问题说明

你遇到的警告源于jupyter_nbextensions_configurator和notebook_shim两个扩展仍在使用即将被Jupyter Server弃用的_jupyter_server_extension_paths函数,而非新的_jupyter_server_extension_points规范。

可行解决方案

1. 更新扩展到兼容版本

优先尝试将这两个扩展升级到支持新API的版本,在终端执行:

pip install --upgrade jupyter_nbextensions_configurator notebook_shim

作为ArchLinux用户,也可以优先使用系统包管理器更新(若包在官方仓库或AUR):

sudo pacman -Syu jupyter-nbextensions-configurator notebook-shim

2. 禁用引发警告的扩展(更新无效时)

如果更新后警告仍存在,可暂时禁用这两个扩展:

  • 禁用jupyter_nbextensions_configurator:
jupyter server extension disable jupyter_nbextensions_configurator
  • 禁用notebook_shim:
jupyter server extension disable notebook_shim

注意:禁用notebook_shim前请确认是否依赖它,部分旧版Jupyter Notebook功能可能需要该扩展支持。

3. 彻底移除无用扩展

若确认不需要这两个扩展,可彻底卸载:
通过pip卸载:

pip uninstall -y jupyter_nbextensions_configurator notebook_shim

通过pacman卸载(系统安装的包):

sudo pacman -Rns jupyter-nbextensions-configurator notebook-shim

卸载完成后重启Jupyter Server即可生效。

4. 临时抑制警告(仅应急,不推荐)

若以上方法均无效,可临时通过启动参数或配置文件抑制警告:

  • 启动时添加参数:
jupyter notebook --no-warn-script-location
  • 修改配置文件:
    1. 生成配置文件(无则生成):
    jupyter server --generate-config
    
    1. 编辑~/.jupyter/jupyter_server_config.py,添加以下内容:
    import warnings
    warnings.filterwarnings("ignore", category=DeprecationWarning, message="A `_jupyter_server_extension_points` function was not found in.*")
    

内容的提问来源于stack exchange,提问作者cerv21

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 15:42:43