我正在为一个项目使用Jupyter notebook,我一直在用vs代码编写,但最近切换到了Jupyter。代码在vs代码中工作,但是,已经用pip安装了模块,但我在Jupyter notebook中得到了导入错误。对于; import reverse_geocoder
from geopy.distance import geodesic 我要拿到 No module named 'reverse_geocoder'
No module named 'geopy' 错误。如何将这些安装到Jupyter?
我尝试在M1 MacBook Air.But中运行VS代码中的笔记本,结果出现了以下错误:
Failed to start the Kernel.
Traceback (most recent call last):
File "/Users/akshitdudeja/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/pythonFiles/vscode_datascience_helpers/jupyter_daemon.py", line 158, in _start_notebook
from n
下面是我尝试从Anaconda提示符启动Jupyter Notebook时得到的入口点错误的屏幕截图。我在Windows7上使用的是conda 4.7.12和Python 3.7.4。有趣的是,Jupyter Notebook仍然可以启动,我可以使用它。只要我运行该命令,就会在Anaconda提示符中收到以下错误消息。
jupyter notebook
ECHO "WARNING: Did not find VS in registry or in VS140COMNTOOLS env var - your c
ompiler may not work"
GOTO End
我想使用运行在WSL 2中的Jupyter笔记本电脑和运行在WSL 2中的代码。常规的Python在WSL中工作没有问题,这意味着基本的conda环境是连接的,我可以运行.py文件。此外,我还能够运行命令jupyter notebook,它将在WSL中启动笔记本服务器,将本地主机暴露给Windows。
但是,我想在VS代码中测试新的木星笔记本功能,这并不适用于我;VS代码显示:Jupyter Server: No Kernel和Python: Not Started (见下面的截图)。
我的测试机器是:
WSL 2(使用Pengwin发行版)在Windows20H1 (19041.21)上
我安装了miniconda,其中包含一个基本环境和一个名为plantcv的附加环境。当我尝试在vs代码中选择plantcv作为我的环境时,它显示"can't start a jupyter server from this environment“。但我可以使用cmd从base或plantcv环境中启动jupyter notebook。
我已经尝试了VS COde,VS Code Insiders,并删除了除Python Extension Pack之外的所有扩展。
WIndows 10 1903,Python3.7,VS代码内幕1.37/VS代码1.36
要链接conda和v
我有一个模块(tqdm),根据我是在jupyter笔记本还是jupyter实验室环境中运行我的.ipynb,我需要以不同的方式导入它。我有办法在蟒蛇身上确定这个吗?例如:
if <jupyter notebook>:
from tqdm import tqdm_notebook as tqdm
elif <jupyter lab>:
from tqdm import tqdm
else:
print("Not in jupyter environment.")
在设置我的新系统时,我试图在VS Code上运行我的笔记本文件,但只要我打开VS Code,它就会给我这个错误
Failed to detect Jupyter Notebook. Please use 'Select Jupyter Notebook' command
在输出中:
Unable to determine version of Jupyter, Traceback (most recent call last):
File "C:\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, i
这个问题我已经有一段时间了。我试图在Jupyter Notebook上使用VS代码,但当我直接打开VS代码时,jupyter服务器无法连接,但当我从Anaconda打开VS代码时,它可以工作。以下是错误消息: Activating Python 3.7.4 64-bit ('base': conda) to run Jupyter failed with Error: StdErr from ShellExec, tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T sp
我正在尝试在vs代码Jupyter notebook中设置一个链接。无论我用哪种方法去做,它似乎都行不通。我的最后一次尝试是使用id标签,仍然没有任何乐趣!
for more explanation on headers see [here] [goog]
[goog]: https://www.kaggle.com/lava18/google-play-store-apps
不确定VS代码中是否有bug,或者如果是我,更有可能是后者,非常感谢任何帮助。谢谢!
我通过anaconda提示创建了一个新的环境。接下来,我使用了"conda activate <env_name>“。之后,我在anaconda提示符中使用"conda module_name“安装了所需的包和模块。
我打开VS并选择解释器。我没问题找到和conda做的静脉。
我选择它,然后打开我的终端(在vs代码中,默认情况下它的命令提示符),它看起来如下:
C:\Users\<filepath to the folder with the jupyter notebook> >C:/Users/X/Anaconda3/Scripts/a
我使用这里的链接中的步骤设置了数据流程
但是我的电脑一直要密码
我没有设置任何密码。
我试过我的google账号密码,但是密码不起作用
我运行了../root$ sudo grep -ir password并获得了以下结果,因此确认没有设置密码
.jupyter/jupyter_notebook_config.py:## Hashed password to use for web authentication.
.jupyter/jupyter_notebook_config.py:# The string should be of the form type:salt:has