node.js - 在 Jupyter Notebook 中安装 JS Node

标签 node.js jupyter-notebook

我正在尝试在 Jupyter Notebook 中运行 Javascript(除非在 JS 中有一个等效的 notebook 可以轻松测试我的脚本),例如我想运行以下内容:

import pixiedust_node
%%node
var date = new Date();
print(date);

为了安装我尝试过的所有东西:
pip install pixiedust , pip install pixiedust_node , conda install -c akode pixiedust , jupyter pixiedust install
而且,当我尝试在 Jupyter 中加载代码时,我得到了这个:

enter image description here

尝试之后:conda install -c anaconda nodejs甚至这个:conda install -c conda-forge nodejs

最佳答案

你实际上可以尝试使用 https://github.com/n-riesco/ijavascript作为笔记本的内核,而不是使用 node over python

关于node.js - 在 Jupyter Notebook 中安装 JS Node,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58063065/

相关文章:

ruby-on-rails - 如果我不需要实时功能,为什么要使用 Node.js?

javascript - 基于node.js和express中的路径运行不同数据库查询的更好方法

python - 如何使用 Windows 操作系统从 .pkl 文件获取数据

jupyter-notebook - 如何从代码(python)创建/修改 jupyter 笔记本?

python - opencv.imshow 会导致 jupyter notebook 崩溃

python - Windows 10 中 Python 3.7 中的 pip 安装索引器错误

node.js - 如何配置 .babelrc 以支持 ES6 模块导入和异步/等待?

node.js - npm 安装 403 问题

javascript - Uncaught ReferenceError : say is not defined

python - 如何从具有不同内核的笔记本运行 Jupyter 笔记本?