感觉JupyterLab使用的人还是比较少,大家都很喜欢Jupyter Notebook,然后Lab的推广做的也就一般,还没有在Annaconda中默认安装,所以有时候遇到什么坑就很头疼。
原本像往常一样,在cmd
里敲击jupyter lab
启动,可是不知为啥,一夜之间突然报错说找不到Kernel?!
什么是Kernel呢?
A ‘kernel’ is a program that runs and introspects the user’s code.
IPython includes a kernel for Python code, and people have written
kernels for several other languages.When Jupyter starts a kernel, it passes it a connection file. This
specifies how to set up communications with the frontend.
就是你用的编译器,一般是python,当然也可以是R等等。一般显示在你Jupyter Notebook/Lab界面的左上角和右下角。
为什么Kernel会出问题?
一般比较新的系统都会默认有一个python的编译器,可以用where python
在cmd
中查看,然后which python
则会显示你现在默认的编译器是哪个。
然而,因为各种包的兼容问题和版本问题,我们往往在电脑上会需要