【问题标题】:Running Neptune in Jupyter Notebook gives NameError that Neptune is not defined在 Jupyter Notebook 中运行 Neptune 会给出未定义 Neptune 的 NameError
【发布时间】:2022-08-09 21:05:05
【问题描述】:
# 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
  • 你是先导入的吗?例如import neptune.new as neptune
  • 是的,我已经导入了 neptune.new

标签: python google-colaboratory nameerror mlops neptune


【解决方案1】:

来自 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

让我知道这是否对您有帮助

【讨论】:

    猜你喜欢
    • 2020-07-03
    • 2021-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-20
    • 2020-06-02
    • 1970-01-01
    • 2017-11-05
    相关资源
    最近更新 更多