I am trying to migrate form a jupyter notebook to a datalore notebook, so the code I expected to work with no issues. I get an error message after running the code below:
Blockquote
from arcgis.gis import GIS
from IPython.display import display
Log into ArcGIS Online
print(“ArcGIS Online Org account”)
gis = GIS(“https://www.arcgis.com”, “XXXXXXX”, “xxxxxxxxx”)
print("Logged in as " + str(gis.properties.user.username))
error message:
Traceback (most recent call last):
at block 2, line 26
NameError: name ‘torch’ is not defined
import torch
where line 26 is this one:
gis = GIS(“https://www.arcgis.com”, “XXXXXXX”, “xxxxxxxxx”)
I dont know why I get a suggestion to import torch… a library that I have never used?