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

使用WebSocket扩展连接Jupyter与Google Colab时遇命令错误求助

问题解决:Jupyter WebSocket扩展启用失败

问题分析

你执行jupyter serverextension enable --py jupyter_http_over_ws时出现Jupyter command 'jupyter-serverextension' not found错误,原因是新版Jupyter(尤其是Jupyter Server 2.x及以上版本)已移除独立的serverextension子命令,相关功能整合到jupyter server extension命令下;另外你重新安装时的命令存在错误(多写了一个install)。

解决步骤

  1. 纠正安装命令,重新安装扩展
    执行正确的安装命令(去掉重复的install):

    pip3 install jupyter_http_over_ws
    
  2. 使用新版命令启用扩展
    替换原来的启用命令,执行:

    jupyter server extension enable --py jupyter_http_over_ws
    
  3. 验证扩展状态
    执行以下命令确认扩展是否成功启用:

    jupyter server extension list
    

    若输出中jupyter_http_over_ws对应的状态为enabled,则说明配置完成。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.03 15:27:04