好吧,其实我不得不改变Path
中.json
的jupyter内核文件。首先,我检查了jupyter内核列表:
$ jupyter kernelspec list
julia-0.6 /Users/mymac/Library/Jupyter/kernels/julia-0.6
julia-1.0 /Users/mymac/Library/Jupyter/kernels/julia-1.0
python3 /Users/mymac/Library/Jupyter/kernels/python3
然后cd
,我在上面的python路径中找到了文件kernel.json
并打开了它:
{
"argv": [
"/path/to/python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
}
在该文件中,然后/path/to/python
通过在终端中键入以下命令时得到的python路径更改行:
$ which python
/Users/mymac/anaconda3/bin/python
重新启动Atom
,终于成功了!