尝试在 jupyterlab 中嵌入 Bokeh 图。我使用了他们推荐的代码(如下)
jupyter labextension 安装@jupyter-widgets/jupyterlab-manager,jupyter labextension 安装@bokeh/jupyter_bokeh
Error: File "", line 1 jupyter labextension install @jupyter-widgets/jupyterlab-manager ^ SyntaxError: invalid syntax
然后使用 jupyterlab 扩展管理器,我再次尝试安装 jupyterlab-manager
但随后 错误:请在继续安装之前安装 nodejs 5+ 和 npm。 Nodejs 可以使用 conda 或直接从 Nodejs 网站安装。
然后我尝试安装 NodeJS,然后使用 pip install Nodejs 和 npm
进行轮转,但无济于事。重复出现同样的错误
Error: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website
我使用pip install jupyter-bokeh
安装了bokeh,并且我正在使用jupyterlab。我没有使用 conda 。并且操作系统是windows
我是编程新手。您的逐步解决方案将受到高度赞赏。
最佳答案
- 首先安装node.js,如果您使用的是conda或brew,则可以通过 一台苹果电脑。
- 验证安装。
- 安装扩展
我
brew install node
node -v
jupyter labextension install @jupyter-widgets/jupyterlab-manager
关于python - 扩展安装错误: Please install nodejs 5+ and npm before continuing installation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61888748/