ubuntu1804安装jupyter中的js环境

参考:
https://github.com/n-riesco/ijavascript

http://n-riesco.github.io/ijavascript/#installation

https://github.com/n-riesco/ijavascript/issues/241

https://www.tomche.space/post/using-javascript-kernel-in-vscode-jupyter-notebooks/

https://www.tomche.space/post/using-javascript-kernel-in-vscode-jupyter-notebooks/

https://anaconda.org/javascript/repo?type=conda&label=main

https://www.npmjs.com/package/node-gyp

sudo apt-get install nodejs npm jupyter
npm config set prefix $HOME
npm install -g ijavascript
ijsinstall

特别注意: if ~/bin folder didn’t exist before, after running this instructions, you may need to log out and back in for ~/bin to be added to your PATH.
也就是需要环境变量。如果~/bin不太好用,或者报错ijsinstall找不到命令,可以使用如下命令:

sudo ln -s ~/bin/ijsconsole /usr/bin/ijsconsole
sudo ln -s ~/bin/ijsinstall /usr/bin/ijsinstall
sudo ln -s ~/bin/ijskernel /usr/bin/ijskernel
sudo ln -s ~/bin/ijsnotebook /usr/bin/ijsnotebook
sudo ln -s ~/bin/node-gyp /usr/bin/node-gyp

如果报错没有0.1版本的gyp,可以安装node-gyp

npm install gyp@0.1

同时记得设置镜像源

npm config set registry http://registry.npm.taobao.org/
npm config get registry

相关推荐

  1. ubuntu1804安装jupyterjs环境

    2023-12-06 01:26:02       43 阅读
  2. ubuntu1404安装dockerce

    2023-12-06 01:26:02       15 阅读
  3. WSLubuntu如何安装node.js

    2023-12-06 01:26:02       19 阅读
  4. ubuntu22.04环境安装pylint

    2023-12-06 01:26:02       17 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-06 01:26:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-06 01:26:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-06 01:26:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-06 01:26:02       20 阅读

热门阅读

  1. 1076 Forwards on Weibo (链接表层序遍历)

    2023-12-06 01:26:02       37 阅读
  2. React实现登录授权功能

    2023-12-06 01:26:02       39 阅读
  3. 制作openeuler的livecd

    2023-12-06 01:26:02       41 阅读
  4. docker快捷控制

    2023-12-06 01:26:02       30 阅读
  5. QT之QNetworkAccessManager

    2023-12-06 01:26:02       32 阅读
  6. C#实现批量生成二维码

    2023-12-06 01:26:02       34 阅读
  7. 基于 EmotiVoice 的批量 TXT 文本转语音工具

    2023-12-06 01:26:02       32 阅读
  8. XML Schema中的elementFormDefault

    2023-12-06 01:26:02       35 阅读
  9. SpringBoot之整合JWT

    2023-12-06 01:26:02       39 阅读