在 Jupyter Notebook 中运行 Neptune 会出现 Neptune 未定义的 NameError

问题描述 投票:0回答:2
# Create run in project (Neptune)
run = neptune.init(project='ssraghuvanshi1989/GCI-01-Lung-CT-Segmentation-20220506')

NameError                    Traceback (most recent call last)
C:\Users\SAURAB~1\AppData\Local\Temp/ipykernel_27104/3392926562.py in <module>
      1 # Create run in project
----> 2 run = neptune.init(project='ssraghuvanshi1989/GCI-01-Lung-CT-Segmentation-20220506')

NameError: name 'neptune' is not defined
python google-colaboratory nameerror mlops neptune
2个回答
0
投票

来自 neptune.ai 的王子,

开始之前,请确保已通过运行以下 pip 命令安装了 Neptune:

pip install neptune-client

然后,正如 @John Morton 建议的那样,您必须在 python 脚本中导入 Neptune。

import neptune.new as neptune

文档:https://docs.neptune.ai/getting-started/hello-world

如果这对您有帮助,请告诉我


0
投票

继续面临同样的错误“NameError: name 'NeptuneCallBack' is not Defined”。请指教。

© www.soinside.com 2019 - 2024. All rights reserved.