1.先把网址甩上来~jupyterlab超大手册https://jupyterlab.readthedocs.io/en/stable/getting_started/installation.html
2.jupter是iPython内核的,想用r,得加个r内核:
先在ubuntu里装个R,怎么装输一下看提示就行啦。
进入R,然后先下载包:
install.packages('IRkernel')
安装内核:
IRkernel::installspec()
3.安装一些好用的插件吧:
首先需要安装npm和nodejs,用pip/pip3安装就可以:
- Jupyterlab-git: 让您在JupyterLab中管理代码版本控制的插件。
- jupyterlab-toc: 用于在JupyterLab侧边栏中显示目录和大纲的插件(3.0已内置)。
- Variable Inspector: 允许您查看Jupyter Notebook和JupyterLab中定义的所有变量的插件。
- jupyterlab-plotly: 用于在JupyterLab中创建交互式图表的插件。
- jupyterlab-omnisci: 用于在JupyterLab中使用OmniSci数据库进行数据分析的插件。
- jupyterlab-spreadsheet: 将JupyterLab转换为电子表格编辑器的插件。
- jupyterlab-lsp: 为JupyterLab提供语言服务器协议支持的插件,以提高代码自动完成和语法高亮等功能。
- jupyterlab-remote-vnc: 通过远程VNC连接在JupyterLab中使用GUI应用程序的插件。
- jupyterlab-system-monitor: 用于监视JupyterLab系统资源使用情况的插件。
- jupyterlab-gitlab: 将GitLab的功能集成到JupyterLab中的插件,以提供更好的代码协作功能。
这些插件(chatgpt推荐)都可以通过JupyterLab的扩展管理器(左侧最下面的图标)进行安装。
也可以terminal用麻烦一丢丢的方式:
jupyter labextension install xxx
安装的时候发现经常无法build,于是按照提示去查看了报错日志,发现是用apt安装的nodejs版本过低(12.几),要求是大于等于14,所以用purge删除了(好像不太干净,又手动删了一些);
重新从node.js的官网下载编译版本,按照如下教程安装https://www.runoob.com/nodejs/nodejs-install-setup.html,最后再来一次jupyter lab build,就正常了。