Python 我能';t使用vscode运行jupyter
我安装了Jupyter:Python 我能';t使用vscode运行jupyter,python,visual-studio-code,jupyter-notebook,Python,Visual Studio Code,Jupyter Notebook,我安装了Jupyter: $ jupyter --version upyter core : 4.6.3 jupyter-notebook : 6.0.3 qtconsole : not installed ipython : 7.13.0 ipykernel : 5.1.4 jupyter client : 6.0.0 jupyter lab : not installed nbconvert : 5.6.1 i
$ jupyter --version
upyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : not installed
ipython : 7.13.0
ipykernel : 5.1.4
jupyter client : 6.0.0
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 6.0.0
nbformat : 5.0.4
traitlets : 4.3.3
在浏览器中,我可以运行jupyter,但在vs代码中,它会首先询问我密码:
我用comande更改了密码:
jupyter笔记本密码
在所有情况下,我都收到了以下信息:
Failed to connect to remote Jupyter notebook.
Check that the Jupyter Server URI setting has a valid running server specified.
http://localhost:8889/tree
r: request to http://localhost:8889/treelogin? failed, reason: connect ECONNREFUSED 127.0.0.1:8889
要在vs代码中运行jupyter,我需要做什么?因此,看起来您对我指定的本地主机不正确。您指定的uri应该是这样的:
http://localhost:8888/?token=6d4d0338502c9d003647b230982a189336c0c59326085b03
,而不是您在浏览器中看到的URI。此外,如果您将python.dataScience.jupyterServerURI
更改为“本地”或空,我们应该为您创建自己的jupyter副本。