Javascript 错误:backtrader 中的 JupyterLab 3.2 中未定义 IPython

Cin*_*ina 5 python matplotlib jupyter-lab

我尝试了这篇文章中的所有解决方案:

Javascript 错误:JupyterLab 中未定义 IPython

然而,在 jupyterLab 3.3.2 中收到相同的错误(但它在 VScode 中正常工作)。任何人将不胜感激。

小智 0

有同样的问题,我已经卸载了 juypter 和笔记本:

    pip install pip-autoremove
    pip-autoremove jupyter -y

    python -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient jupyter-server-mathjax jupyterlab-code-formatter jupyterlab-lsp nbclassic nbdime jupyterlab-git
Run Code Online (Sandbox Code Playgroud)

然后再次安装

    pip install notebook
    pip install jupyter
Run Code Online (Sandbox Code Playgroud)

神奇的是,它工作了,ipywidgets 现在可以在笔记本中工作了