美文网首页python数据科学之路
jupyter lab安装和配置

jupyter lab安装和配置

作者: 学着放下 | 来源:发表于2021-05-27 15:51 被阅读0次

自行到nodejs官网下载nodejs,win7 最高支持版本为13.6

npm设置国内镜像

npm config set registry https://registry.npm.taobao.org

查看设置

npm config get registry

安装yarn

npm install -g yarn
# yarn 设置国内镜像
yarn config set registry https://registry.npm.taobao.org/
yarn config get registry

安装python,win7最高支持版本为3.8
设置国内镜像pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

安装jupyter lab

pip install jupyter lab

win10 命令可能是

pip install jupyter-lab

用pip 安装python 的nodejs插件,注意这个插件和上面的nodejs不是一个东西

pip install nodejs

安装IRkernel

#在R安装IRkernel
install.packages('IRkernel') 
IRkernel::installspec()
jupyter labextension install @techrah/text-shortcuts

注意:如果jupyter lab无法安装这个插件,或者失败,可以尝试如下2种方法

  1. 在系统命令行安装
install.packages('devtools')
devtools::install_github('IRkernel/IRkernel')
image.png
  1. 在windows 找到如下路径,如果没有就新建,然后把IRkernel的文件复制到里面


    image.png

安装插件,注意win10命令可能是jupyter lab-extension install

# git
pip install jupyterlab-git
jupyter labextension install @jupyterlab/git
# github
jupyter labextension install @jupyterlab/github
# toc
jupyter labextension install @jupyterlab/toc

相关文章

网友评论

    本文标题:jupyter lab安装和配置

    本文链接:https://www.haomeiwen.com/subject/hozrsltx.html