Questions tagged [arcgis-notebook]

Use for questions about ArcGIS Notebooks (which are built on top of the Jupyter Notebook)

Filter by
Sorted by
Tagged with
-1 votes
0 answers
18 views

Unable to create spatial dataframe in ArcGIS Pro using ArcGIS Notebook

error while running the code: counties_sdf = pd.DataFrame.spatial.from_layer(item.layers[0]) counties_sdf.head() error shown : Line 8: counties_sdf = pd.DataFrame.spatial.from_layer(item.layers[0]) ...
sowparnika's user avatar
0 votes
1 answer
30 views

ArcGIS Python API (gis.user.search)

Every time I run this code with a wild card (max_users = '*') or >140 I get this error JSONDecodeError: Expecting value: line 1 column 1 (char 0). But are <140 value it works fine not just all ...
Godofsix's user avatar
0 votes
0 answers
34 views

arcpy.management.DeleteField working in Pro notebook but not online hosted notebook

I'm trying to take some models in ArcGIS Pro that I've built, and translate them into a AGOL Advanced notebook. Originally I was building the notebook in Pro for testing. However I just tried it in ...
TarIV's user avatar
  • 1
0 votes
0 answers
52 views

Bypassing KeyError: 'type' when running a ArcGIS Online Python Notebook meant to overwrite organizational CSV

I have a scheduled organizational script that is only meant to be run during the summer and is left dormant for the winter as the data it scrapes is not maintained at that time. The reason I am ...
gecco15's user avatar
0 votes
0 answers
42 views

Using Python IDLE with Notebooks

I've written a script in Python IDLE and in Notebook, both accesed within ArcGIS Pro, v2.9.5, umbrella in Start. I was trying to add the code from the Notebook into the IDLE script and was getting ...
Mark Hammond's user avatar
1 vote
1 answer
87 views

How to reverse the color scheme for a preset color ramp using ArcPy inside of ArcGIS Pro (by changing the class breaks)

I have a Jupyter Notebook in my ArcGIS Pro project which changes the symbology of my map layer. In this script I manually set the class breaks using the classBreakValues variable which works as long ...
Bojan Milinic's user avatar
1 vote
1 answer
50 views

Performing analysis with sDNA toolbox using ArcGIS Notebook

I am trying to perform 'arcpy.Spatial Design Network Analysis.sDNAPrepare' command using ArcGIS Notebook on ArcGIS Pro (ver. 2.7.1). However, I have failed to run the command. What is the problem and ...
Villanelle LEE's user avatar
1 vote
2 answers
62 views

ArcGIS Jupyter Notebooks - calling the attribute Id

I am looking to list field properties and I can't seem to find the parameter that will call the attribute id for the layer. What properties can you call? Examples: ['name'] ['alias'] What I am ...
Gwen Zarko's user avatar
1 vote
1 answer
213 views

Unable to open ArcGIS Pro notebook from cloned active environment

I have been working in ArcGIS Pro Notebooks from my default active environment (arcgispro-py3). I wanted to install a new package in this environment, but once in the package manager I have the ...
Scott Z's user avatar
  • 141
0 votes
1 answer
67 views

Where is what I'm editing?

I'm trying to find a way to access the path of the notebook file (.ipynb) that I'm currently editing, in a way that would work either in ArcGIS Pro or in an external IDE like Jupyter or VS-code. What ...
spedunkler's user avatar
0 votes
0 answers
126 views

Edit attribute tables with another table in ArcGIS Pro using ArcPy

I have two tables and I need to update one based on the other. For this, I need to take two columns (idscap and spardcode) as the initial reference value and thus modify all the columns of the table. ...
Andrea Quintero's user avatar
0 votes
0 answers
32 views

With ArcGIS Solutions, what is the difference between Jupyter Notebooks and the Notebook Server? Several solutions now require Notebook server

Several solutions now require a Notebook Server as Part of your Portal environment. Is it truly a requirement or can Jupyter Notebooks work as well?
Brett Sanders's user avatar
1 vote
0 answers
211 views

Export Feature Layer Data from ArcGIS Online with Python

Is it possible to export data from a feature layer in ArcGIS using either ArcPy or an ArcGIS Notebook? I'm trying to find a way to automate exports of data collected by field workers using Field Maps ...
Chad Leftwich's user avatar
0 votes
0 answers
44 views

Applying GraduatedColorsRenderer based on classification field values in ArcPy

import arcpy import pandas as pd data = arcpy.ListFields(r"C:\Users\Administrator\Documents\ArcGIS\Projects\Oakville\Oakville.gdb\Etobicoke") path = r"C:\Users\Administrator\Documents\...
Charan's user avatar
  • 1
1 vote
1 answer
60 views

out_field in ArcGIS Python API returning unwanted fields

I am trying to output ONLY the Name Field in sdf using ArcGIS Python API and Notebook like thia query = layer.query(where="POP2010 > 1000000", out_fields='NAME') query.sdf But I am ...
Suffii's user avatar
  • 588
0 votes
1 answer
76 views

Randomly select points in a feature layer

Context: I'm working on AGOL notebooks I have a feature layer (points). So, I'd like to randomly select several points based on the value in one of the columns ('level_' column). For instance, I'd ...
MVAC's user avatar
  • 3
1 vote
1 answer
2k views

Using ArcPy with ArcGIS Pro to zoom to features and export PDF [duplicate]

I've got a map containing several layers, and a layout set up that uses this map. What I'd like to do is set up a script so that, when the user inputs a "block" (integer) and a map layout (...
user25730's user avatar
  • 852
0 votes
0 answers
213 views

Creating polygons in ArcGIS Pro based on Survey123 (possibly automated with Notebooks?)

I am by no means a professional when it comes to using GIS. I am taking an elective in college, doing a project of my own choosing in GIS. This question relates to ArcGIS Pro, Survey123 and Notebooks. ...
Patrick Grahl's user avatar
2 votes
0 answers
331 views

ArcGIS API for Python: AttributeError: module 'brotli' has no attribute 'error'

from arcgis.gis import GIS when run in ArcGIS Pro 2.6 notebook results in long error message (below). What might be wrong? Note that import arcpy works without difficulties. --------------------------...
Estiivan's user avatar
  • 387
0 votes
1 answer
768 views

Unable to load ArcGIS Pro Notebook from UNC Path

I am trying to open an ArcGIS Pro Python Notebook I wrote on my remote desktop now that I'm back in the office and somehow my UNC Path is not recognized in my script. I am able to see the .ipynb file ...
M-Alta's user avatar
  • 1
0 votes
1 answer
243 views

ArcGIS Pro: where does arcpy reference map order?

Problem: In an ArcGIS Pro 2.8 Notebook, how is python reading the map order? I have to know this because when I use a list the items in that list are based off the order of the maps. When that order ...
Pfalbaum's user avatar
  • 903
0 votes
2 answers
132 views

Creating proportional symbology on layer in Notebook using ArcGIS Pro

I am using an ArcGIS Notebook with ArcGIS Pro. I am able to set graduate colors to my layers symbology. Although there is no renderer for proportional symbology. Is there any way to do that? aprx = ...
TurnGISon's user avatar
1 vote
2 answers
1k views

Jupyter Notebook fails to launch in ArcGIS Pro 2.8

Since upgrading to ArcGIS Pro 2.8 from 2.6, I am facing an issue with the Jupyter Notebook that fails to load and returns an error: Failed to Load Notebook What all I have tried: Tried opening the ...
Yogesh Chavan's user avatar
0 votes
0 answers
238 views

Cannot import seaborn [WinError 126] The specified module could not be found

I am trying to import seaborn in my notebook [part of ArcGIS Pro] and I get [WinError 126] The specified module could not be found error. -----------------------------------------------------------...
sMartines's user avatar
0 votes
0 answers
117 views

Output IN_MEMORY for arcpy.analysis.Split()

I am using the arcpy module within the Jupyter Notebook to automate a sequence of ArcGIS tools. Most of the outputs I use are "in_memory", only the tool "arcpy.analysis.Split()" ...
tyssondocarmo's user avatar
1 vote
1 answer
399 views

Scheduled/emailed reports using ArcGIS Notebook Server?

Is it possible to send scheduled/emailed reports via ArcGIS Notebook Server scheduled tasks? An example of a scheduled report would be: The report/task runs weekly Emailed to a list of recipients (...
User1974's user avatar
  • 1,114
1 vote
1 answer
392 views

Esri Notebook - Select and append records to table

Using Notebook editor in ArcGIS Online i want to extract from a FC table, those records with a specific data and then insert them into a separate table. I am trying the code below, but getting an &...
BretW's user avatar
  • 479
0 votes
1 answer
114 views

Displaying 2 rasters side by side in ArcGIS Pro Notebook

I have drone imagery that I am performing various processes through a notebook. One thing I would like to do is display the RGB imagery next to a single band plant height raster for visual comparison ...
Ryan 's user avatar
  • 21
0 votes
1 answer
505 views

Trying to Export SDF to CSV and save locally using ArcGIS Notebook

from IPython.display import display from arcgis.features import feature from arcgis.geoprocessing import import_toolbox import pandas as pd gis = GIS("https://arcgis.com/","username&...
Steven Kenny's user avatar
1 vote
1 answer
713 views

Creating new Python Script tool with ArcGIS Notebooks

I am trying to create a new tool in ArcGIS Pro that is based on a python script written in the Jupyter Notebook interface. I realize I can write the script elsewhere and save it as a *.py file and ...
anner.paldor's user avatar
3 votes
1 answer
53 views

Area calculation in "Thomas Fire analysis"

I am studying this notebook: California wildfires 2017 - Thomas Fire analysis I can follow the first part of the notebook. But I have got confused in this cell to calculate the burnt area: ext = {&...
dgg32's user avatar
  • 155
0 votes
1 answer
445 views

Search Cursor cannot access hosted table in ArcGIS Online using Notebooks

I am receive a Runtime Error when using a Search Cursor on a hosted Table in ArcGIS Online and I cannot figure out why. I am using an AGOL Notebook. The message is that it cannot access the Table. ...
axman's user avatar
  • 1
1 vote
1 answer
100 views

ArcPy syntax for nested Con statement

I am trying to convert a process usually used in ArcGIS Tools to arcpy in a Jupyter notebook. I have a very long Con statement that basically takes all the values of 10 rasters and adds them together....
ChristineF's user avatar
-1 votes
1 answer
172 views

HTTP GET request to ArcGIS Notebook Server

In an external system, I want to make an HTTP GET request —to— ArcGIS Notebooks for Server. In ArcGIS Notebooks for Server, I would have a Python function that would process the request and return a ...
User1974's user avatar
  • 1,114
1 vote
1 answer
674 views

Adding query layer to MapView in Jupyter Notebook returns "RuntimeError: Cannot infer layer: will not be added to map"

I am working within a Jupyter notebook, trying to display a query layer (querying a SQL database) into a map view within the notebook. I receive a Runtime Error (described below) when I try to add ...
ycartwhelen's user avatar
  • 2,342
1 vote
0 answers
676 views

Fixing ArcGIS Pro crash with opening notebooks after installing Anaconda

I have had problems with opening notebooks in ArcGIS Pro 2.5 since installing 64-bit Anaconda 3 on my PC (Windows 10 OS). When I create a project in ArcGIS Pro and try to open a notebook within ...
julianas's user avatar
1 vote
0 answers
302 views

Feature Class to Feature Class error: 999999 (ArcGIS Pro 2.5)

I've tried this with the new ArcGIS Pro 2.5 Python Notebook and the Python compiler from within Pro. I have about 15 layers that I'm reading in from a couple different external servers. I can read in ...
Dave's user avatar
  • 553
0 votes
1 answer
280 views

How to visualize route layer on ArcPy Jupyter Notebook (ArcGIS)

I tried to visualize the route between two points using ArcPy in a Jupyter notebook. The network module is activated in my Esri account. Even though it visualizes the map I can't see the route on that ...
GeoJ's user avatar
  • 25
0 votes
1 answer
842 views

Getting KeyError: groups from ArcGIS API for Python

I am working on ArcGIS Notebooks from arcgis.gis import GIS from IPython.display import display agol_gis = GIS("https://*********.maps.arcgis.com/home/") agolSiteAdmin = agol_gis.users.get('siteadmin'...
user4906240's user avatar
  • 1,078