gpt4 book ai didi

jupyter-lab - 如何更新已安装的小部件

转载 作者:行者123 更新时间:2023-12-03 13:44:32 26 4
gpt4 key购买 nike

当我从 python 虚拟环境文件夹中的 cmd 提示符启动 Jupyter Lab 时,我注意到 Jupyter 启动过程显示
三个 Jupyter 小部件已过时。没有描述如何更新这些小部件的显示消息。

因此,问题是:如何更新 Jupyter 小部件?

我搜索了解决方案,但没有找到任何解决方案。

底部带有三个小部件过时消息的启动代码

(ML3-2Gxa7Dh2) C:\pythonVE\ML3>jupyter lab

[I 11:26:05.773 LabApp] JupyterLab extension loaded from c:\python37\lib\site-packages\jupyterlab
[I 11:26:05.773 LabApp] JupyterLab application directory is c:\python37\share\jupyter\lab
[W 11:26:05.793 LabApp] Error loading server extension jupyterlab_latex
Traceback (most recent call last):
File "c:\python37\lib\site-packages\notebook\notebookapp.py", line 1572, in init_server_extensions
mod = importlib.import_module(modulename)
File "c:\python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'jupyterlab_latex'
[W 11:26:05.840 LabApp] JupyterLab server extension not enabled, manually loading...
[I 11:26:05.881 LabApp] JupyterLab extension loaded from c:\python37\lib\site-packages\jupyterlab
[I 11:26:05.881 LabApp] JupyterLab application directory is c:\python37\share\jupyter\lab
[I 11:26:05.883 LabApp] Serving notebooks from local directory: C:\pythonVE\ML3
[I 11:26:05.883 LabApp] The Jupyter Notebook is running at:
[I 11:26:05.883 LabApp] http://localhost:8888/
[I 11:26:05.884 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 11:26:07.540 LabApp] 302 GET /lab (::1) 1.00ms
[I 11:26:16.232 LabApp] 302 POST /login?next=%2Flab (::1) 1.00ms
[W 11:26:47.607 LabApp] The extension "@jupyter-widgets/jupyterlab-manager" is outdated.

[W 11:26:47.609 LabApp] The extension "@jupyterlab/latex" is outdated.

[W 11:26:47.611 LabApp] The extension "@jupyterlab/toc" is outdated.

[I 11:26:48.411 LabApp] Build is up to date
|[I 11:26:54.426 LabApp] Kernel started: 5ba63189-6fa9-40cc-87ea-eea2d869

小部件似乎在 Jlab 笔记本中工作。

最佳答案

我有一个类似的问题,我可以通过键入以下命令来解决:

jupyter labextension update --all


jupyter labextension list

我可以向我展示扩展名,包括那些过时的扩展名,更新它们的命令也显示在那里。

由于您正在编写“cmd 提示符”,我希望您使用的是 Windows,因此您的结果可能会有所不同。因为我正在取消 Linux 并且无法在 Windows 上对其进行测试,所以我不知道 npm 的行为是否相同。

顺便说一句:与
jupyter labextension --help

您可以获得有关 labextensions 的进一步帮助,包括“安装”提示,这对您来说也可能很有趣,因为您的输出还提示缺少 LaTeX 扩展。

关于jupyter-lab - 如何更新已安装的小部件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57128093/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com