{"id":2746412,"date":"2025-04-17T15:20:00","date_gmt":"2025-04-17T22:20:00","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=2746412"},"modified":"2025-08-14T07:53:53","modified_gmt":"2025-08-14T14:53:53","slug":"new-use-the-arcgis-api-for-python-in-databricks-notebooks","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks","title":{"rendered":"New! Use the ArcGIS API for Python in Databricks Notebooks"},"author":154341,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[37101],"tags":[152942,387782],"industry":[],"product":[36841],"class_list":["post-2746412","blog","type-blog","status-publish","format-standard","hentry","category-announcements","tag-api-for-python","tag-arcgis-api-for-python","product-api-python"],"acf":{"authors":[{"ID":154341,"user_firstname":"Nicholas","user_lastname":"Giner","nickname":"Nick Giner","user_nicename":"nginer","display_name":"Nicholas Giner","user_email":"NGiner@esri.com","user_url":"","user_registered":"2021-01-07 14:31:25","user_description":"Nick Giner is a Product Manager for Spatial Analysis and Data Science.  Prior to joining Esri in 2014, he completed Bachelor\u2019s and PhD degrees in Geography from Penn State University and Clark University, respectively. In his spare time, he likes to play guitar, golf, cook, cut the grass, and read\/watch shows about history.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/headshot-e1610030307989-213x200.jpeg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"},{"ID":358272,"user_firstname":"Halle","user_lastname":"Martinucci","nickname":"Halle Martinucci","user_nicename":"hmartinucci","display_name":"Halle Martinucci","user_email":"hmartinucci@esri.com","user_url":"","user_registered":"2024-06-18 18:43:42","user_description":"Halle is an Associate Product Marketing Manager on Esri\u2019s Spatial Analytics &amp; Data Science team.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/01\/halle-martinucci-3z7a7050-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"short_description":"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.","flexible_content":[{"acf_fc_layout":"content","content":"<p>The <a href=\"https:\/\/developers.arcgis.com\/python\/latest\/\" target=\"_blank\" rel=\"noopener\"><strong>ArcGIS API for Python<\/strong><\/a> is a Python library that you can use to script and automate GIS workflows in ArcGIS Online and ArcGIS Enterprise.\u00a0 These workflows include administering your Web GIS, managing your organization\u2019s data and content, visualizing GIS data and making web maps, and performing spatial analysis and data science.<\/p>\n<p>While we recommend using the ArcGIS API for Python in <a href=\"https:\/\/www.esri.com\/en-us\/arcgis\/products\/arcgis-notebooks\/overview\" target=\"_blank\" rel=\"noopener\"><strong>ArcGIS Notebooks<\/strong><\/a> for consistency and compatibility reasons, we know that some of our customers want to install it via <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/guide\/install-and-set-up\/anaconda\/\" target=\"_blank\" rel=\"noopener\">package managers<\/a><\/strong> and use it in Jupyter Notebooks, Visual Studio Code, PyCharm, Spyder, or whatever other IDE they prefer.<\/p>\n<p>Recently, we\u2019ve heard from several customers who are interested in installing and using the ArcGIS API for Python in Databricks Notebooks.\u00a0 The following sections walk you through the steps for getting this up and running in Microsoft Azure.<\/p>\n<h3>What is Databricks?<\/h3>\n<p><strong><a href=\"https:\/\/www.databricks.com\/\" target=\"_blank\" rel=\"noopener\">Databricks<\/a><\/strong> is a cloud-based, scalable lakehouse platform that enables organizations to use their data, analytics, and AI.\u00a0 It seamlessly integrates with the storage and security in your cloud account and deploys and manages cloud infrastructure on your behalf.<\/p>\n<p>One of the key features of Databricks is their <a href=\"https:\/\/www.databricks.com\/product\/collaborative-notebooks\" target=\"_blank\" rel=\"noopener\"><strong>Notebook offering<\/strong><\/a>.\u00a0 These notebooks are fully managed (e.g. \u201chosted\u201d) and come with a runtime containing pre-installed <strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/databricks\/libraries\/\" target=\"_blank\" rel=\"noopener\">Python libraries<\/a><\/strong>. \u00a0You also have the option to customize these runtimes by installing third-party or custom Python libraries, which in our case will be the ArcGIS API for Python.<\/p>\n<h3>Steps to install and use ArcGIS API for Python in Microsoft Azure Databricks<\/h3>\n<h4><strong>Prerequisites<\/strong><\/h4>\n<ul>\n<li>An active subscription to Microsoft Azure.<\/li>\n<li>A Databricks account. If you do not have one, you can <strong><a href=\"https:\/\/docs.databricks.com\/getting-started\/index.html\" target=\"_blank\" rel=\"noopener\">create one by starting a Databricks free trial<\/a><\/strong>.<\/li>\n<li>A Databricks workspace. You can use <strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/databricks\/getting-started\/\" target=\"_blank\" rel=\"noopener\">these steps<\/a><\/strong> to create one, then open it a web browser.<\/li>\n<li>A Databricks compute resource (e.g. a \u201ccluster\u201d)<\/li>\n<\/ul>\n<h4><strong>1. <\/strong><strong>Install the ArcGIS API for Python<\/strong><\/h4>\n<p>There are two primary ways to install Python libraries in Databricks: <strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/databricks\/libraries\/cluster-libraries\">Compute-scoped libraries<\/a><\/strong> and <strong><a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/databricks\/libraries\/notebooks-python-libraries\">notebook-scoped libraries<\/a><\/strong>.<\/p>\n<p>Compute-scoped libraries are installed at the Databricks cluster-level, are available to all notebooks and jobs running on that cluster, and persist across the cluster even after it is terminated.\u00a0 Notebook-scoped libraries are installed at the notebook-level, and are available only in that notebook during the notebook session.\u00a0 They are not available to other notebooks running on the cluster, and do not persist within a notebook after the session has been terminated.<\/p>\n"},{"acf_fc_layout":"sidebar","content":"<p><strong>Note:<\/strong> You can skip down to Section 1c if you want to install the ArcGIS API for Python directly in a notebook (notebook-scoped installation).<\/p>\n","image_reference":false,"layout":"standard","image_reference_figure":"","snippet":"","spotlight_name":"","section_title":"","position":"Center","spotlight_image":false},{"acf_fc_layout":"content","content":"<p><span style=\"text-decoration: underline\">1a. Compute-scoped library installation steps<\/span><\/p>\n<ul>\n<li>From the <strong>Compute <\/strong>section of the workspace, click <strong>Libraries.<\/strong><\/li>\n<li>Click <strong>Install new.<\/strong><\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928801,"id":2928801,"title":"compute_scoped_libraries","filename":"compute_scoped_libraries.png","filesize":121858,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/compute_scoped_libraries","alt":"","author":"154341","description":"","caption":"","name":"compute_scoped_libraries","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:09:19","modified":"2025-08-13 19:09:19","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1915,"height":657,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries.png","medium-width":464,"medium-height":159,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries.png","medium_large-width":768,"medium_large-height":263,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries.png","large-width":1915,"large-height":657,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries-1536x527.png","1536x1536-width":1536,"1536x1536-height":527,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries.png","2048x2048-width":1915,"2048x2048-height":657,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries-826x283.png","card_image-width":826,"card_image-height":283,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/compute_scoped_libraries.png","wide_image-width":1915,"wide_image-height":657}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<ul>\n<li>In the <strong>Library Source <\/strong>button list, choose<strong> PyPI<\/strong>.<\/li>\n<li>Under <strong>Package<\/strong>, enter the specific version of the Python package you want to install. In our case, we\u2019ll enter <strong><code>arcgis == 2.4.1<\/code>.<\/strong><\/li>\n<li>Click <strong>Install<\/strong>.<\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928811,"id":2928811,"title":"PyPI","filename":"PyPI.png","filesize":60806,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/pypi","alt":"","author":"154341","description":"","caption":"","name":"pypi","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:10:47","modified":"2025-08-13 19:10:47","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1023,"height":599,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","medium-width":446,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","medium_large-width":768,"medium_large-height":450,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","large-width":1023,"large-height":599,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","1536x1536-width":1023,"1536x1536-height":599,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","2048x2048-width":1023,"2048x2048-height":599,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI-794x465.png","card_image-width":794,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/PyPI.png","wide_image-width":1023,"wide_image-height":599}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"sidebar","content":"<p><strong>Note:<\/strong> At the time of writing this blog (August 2025), 2.4.1 was the current version of the ArcGIS API for Python.\u00a0 Please refer to the <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/\">documentation<\/a><\/strong> for the current release version.<\/p>\n","image_reference":false,"layout":"standard","image_reference_figure":"","snippet":"","spotlight_name":"","section_title":"","position":"Center","spotlight_image":false},{"acf_fc_layout":"content","content":"<p>Once you see the green check under <strong>Status<\/strong>, you are ready to use the ArcGIS API for Python in any notebook that you attach to this cluster.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2928821,"id":2928821,"title":"installed","filename":"installed.png","filesize":112313,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/installed","alt":"","author":"154341","description":"","caption":"","name":"installed","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:11:51","modified":"2025-08-13 19:11:51","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1913,"height":653,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed.png","medium-width":464,"medium-height":158,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed.png","medium_large-width":768,"medium_large-height":262,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed.png","large-width":1913,"large-height":653,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed-1536x524.png","1536x1536-width":1536,"1536x1536-height":524,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed.png","2048x2048-width":1913,"2048x2048-height":653,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed-826x282.png","card_image-width":826,"card_image-height":282,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/installed.png","wide_image-width":1913,"wide_image-height":653}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><u>1b. Creating a notebook in Databricks <\/u><\/p>\n<ul>\n<li>To create a notebook in Databricks, click the <strong>Workspace <\/strong>tab on the left menu.<\/li>\n<li>Click the <strong>Create <\/strong>dropdown on the top right corner, and click <strong>Notebook<\/strong>.<\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928831,"id":2928831,"title":"new_notebook","filename":"new_notebook.png","filesize":136345,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/new_notebook","alt":"","author":"154341","description":"","caption":"","name":"new_notebook","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:12:42","modified":"2025-08-13 19:12:42","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1879,"height":689,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook.png","medium-width":464,"medium-height":170,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook.png","medium_large-width":768,"medium_large-height":282,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook.png","large-width":1879,"large-height":689,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook-1536x563.png","1536x1536-width":1536,"1536x1536-height":563,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook.png","2048x2048-width":1879,"2048x2048-height":689,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook-826x303.png","card_image-width":826,"card_image-height":303,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/new_notebook.png","wide_image-width":1879,"wide_image-height":689}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<ul>\n<li>Click the <strong>Connect <\/strong>dropdown on the top right corner and select the cluster to configure the notebook runtime to use the cluster configured with the ArcGIS API for Python.<\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928841,"id":2928841,"title":"connect","filename":"connect.png","filesize":73702,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/connect-2","alt":"","author":"154341","description":"","caption":"","name":"connect-2","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:13:09","modified":"2025-08-13 19:13:09","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1616,"height":428,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect.png","medium-width":464,"medium-height":123,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect.png","medium_large-width":768,"medium_large-height":203,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect.png","large-width":1616,"large-height":428,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect-1536x407.png","1536x1536-width":1536,"1536x1536-height":407,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect.png","2048x2048-width":1616,"2048x2048-height":428,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect-826x219.png","card_image-width":826,"card_image-height":219,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connect.png","wide_image-width":1616,"wide_image-height":428}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>This may take a few moments.\u00a0 When the cluster is attached, the cluster name will appear as shown below.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2928851,"id":2928851,"title":"connected_notebook","filename":"connected_notebook.png","filesize":44840,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/connected_notebook","alt":"","author":"154341","description":"","caption":"","name":"connected_notebook","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:13:39","modified":"2025-08-13 19:13:39","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":683,"height":491,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","medium-width":363,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","medium_large-width":683,"medium_large-height":491,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","large-width":683,"large-height":491,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","1536x1536-width":683,"1536x1536-height":491,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","2048x2048-width":683,"2048x2048-height":491,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook-647x465.png","card_image-width":647,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/connected_notebook.png","wide_image-width":683,"wide_image-height":491}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<ul>\n<li>In a notebook cell, type the command <strong><code>!pip list<\/code><\/strong> to view the list of installed Python packages in the notebook runtime, and verify that the ArcGIS API for Python is one of them.<\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928861,"id":2928861,"title":"pip_list","filename":"pip_list.png","filesize":93881,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/pip_list","alt":"","author":"154341","description":"","caption":"","name":"pip_list","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:14:22","modified":"2025-08-13 19:14:22","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1600,"height":694,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list.png","medium-width":464,"medium-height":201,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list.png","medium_large-width":768,"medium_large-height":333,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list.png","large-width":1600,"large-height":694,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list-1536x666.png","1536x1536-width":1536,"1536x1536-height":666,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list.png","2048x2048-width":1600,"2048x2048-height":694,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list-826x358.png","card_image-width":826,"card_image-height":358,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/pip_list.png","wide_image-width":1600,"wide_image-height":694}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><u>1c. Notebook-scoped library installation steps<\/u><\/p>\n<ul>\n<li>If necessary, follow the steps in the previous Section 1b to create a new notebook and attach it to a cluster.<\/li>\n<li>In a notebook cell, type <strong><code>!pip install arcgis==2.4.1<\/code> <\/strong>then run the cell.<\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928871,"id":2928871,"title":"install_in_notebook","filename":"install_in_notebook.png","filesize":10194,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/install_in_notebook","alt":"","author":"154341","description":"","caption":"","name":"install_in_notebook","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:15:10","modified":"2025-08-13 19:15:10","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":652,"height":142,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook-213x142.png","thumbnail-width":213,"thumbnail-height":142,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","medium-width":464,"medium-height":101,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","medium_large-width":652,"medium_large-height":142,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","large-width":652,"large-height":142,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","1536x1536-width":652,"1536x1536-height":142,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","2048x2048-width":652,"2048x2048-height":142,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","card_image-width":652,"card_image-height":142,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/install_in_notebook.png","wide_image-width":652,"wide_image-height":142}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<ul>\n<li>In a new notebook cell, type the command <strong><code>!pip list<\/code><\/strong> to view the list of installed Python packages in the notebook runtime, and verify that the ArcGIS API for Python is one of them.<\/li>\n<\/ul>\n"},{"acf_fc_layout":"sidebar","content":"<p><strong>Note:<\/strong> At the time of writing this blog (August 2025), 2.4.1 was the current version of the ArcGIS API for Python.\u00a0 Please refer to the <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/\">documentation<\/a><\/strong> for the current release version.<\/p>\n","image_reference":false,"layout":"standard","image_reference_figure":"","snippet":"","spotlight_name":"","section_title":"","position":"Center","spotlight_image":false},{"acf_fc_layout":"content","content":"<p>Now you are ready to connect to your GIS and start using the ArcGIS API for Python.\u00a0 Happy scripting!<\/p>\n<p><strong>2. Use the ArcGIS API for Python in a Databricks Notebook<\/strong><\/p>\n<p>Among the thousands of ways you can use the ArcGIS API for Python a Databricks notebook, here is one simple workflow for reading a ArcGIS Online layer as a Pandas DataFrame.\u00a0 The high-level steps include:<\/p>\n<ul>\n<li>Importing the <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/api-reference\/arcgis.gis.toc.html#arcgis.gis.GIS\">GIS class<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/guide\/working-with-different-authentication-schemes\/\">Connecting to your ArcGIS Online organization<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/guide\/working-with-feature-layers-and-features\/\">Obtaining the feature layer<\/a><\/strong><\/li>\n<li>Converting it to a <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/guide\/introduction-to-the-spatially-enabled-dataframe\/\">Spatially Enabled DataFrame<\/a><\/strong><\/li>\n<li>Running some basic <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/guide\/part3-introduction-to-pandas\/#working-with-dataframe\">Pandas functions on the DataFrame<\/a><\/strong><\/li>\n<li>Publishing a cleaned\/engineered version of the dataset back to ArcGIS Online<\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":2928881,"id":2928881,"title":"import_arcgis","filename":"import_arcgis.png","filesize":244662,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/import_arcgis","alt":"","author":"154341","description":"","caption":"","name":"import_arcgis","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:17:10","modified":"2025-08-13 19:17:10","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1545,"height":883,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis.png","medium-width":457,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis.png","medium_large-width":768,"medium_large-height":439,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis.png","large-width":1545,"large-height":883,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis-1536x878.png","1536x1536-width":1536,"1536x1536-height":878,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis.png","2048x2048-width":1545,"2048x2048-height":883,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis-814x465.png","card_image-width":814,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/import_arcgis.png","wide_image-width":1545,"wide_image-height":883}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":{"ID":2928891,"id":2928891,"title":"sedf","filename":"sedf.png","filesize":147137,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/sedf-4","alt":"","author":"154341","description":"","caption":"","name":"sedf-4","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:17:35","modified":"2025-08-13 19:17:35","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1540,"height":880,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf.png","medium-width":457,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf.png","medium_large-width":768,"medium_large-height":439,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf.png","large-width":1540,"large-height":880,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf-1536x878.png","1536x1536-width":1536,"1536x1536-height":878,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf.png","2048x2048-width":1540,"2048x2048-height":880,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf-814x465.png","card_image-width":814,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/sedf.png","wide_image-width":1540,"wide_image-height":880}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>In the<strong> <a href=\"https:\/\/www.arcgis.com\/home\/item.html?id=394d26a0dc684c4c8347afd002f63b70\">Proclaimed Forest Boundaries<\/a><\/strong> DataFrame, we can see that there are 90 rows and 7 columns.\u00a0 As a quick example, let\u2019s run a few more lines of code to clean up some of the column names, create a subset of only the forests that are larger than 1 million acres, and then publish this subset as a feature layer back to ArcGIS Online.<\/p>\n<p>Here we use the <strong><em><a href=\"https:\/\/pandas.pydata.org\/docs\/reference\/api\/pandas.DataFrame.columns.html\">.columns<\/a><\/em><\/strong> property to list out the columns of a Pandas DataFrame.\u00a0 We then use the <strong><em><a href=\"https:\/\/pandas.pydata.org\/docs\/reference\/api\/pandas.DataFrame.rename.html\">.rename<\/a><\/em><\/strong> function to rename the columns to something we find more appropriate.\u00a0 In our case, we have changed the column names from uppercase to Proper Case.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2928901,"id":2928901,"title":"cleaning_1","filename":"cleaning_1.png","filesize":151363,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/cleaning_1","alt":"","author":"154341","description":"","caption":"","name":"cleaning_1","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:18:09","modified":"2025-08-13 19:18:09","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1551,"height":877,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1.png","medium-width":462,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1.png","medium_large-width":768,"medium_large-height":434,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1.png","large-width":1551,"large-height":877,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1-1536x869.png","1536x1536-width":1536,"1536x1536-height":869,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1.png","2048x2048-width":1551,"2048x2048-height":877,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1-822x465.png","card_image-width":822,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_1.png","wide_image-width":1551,"wide_image-height":877}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>Next, we can use a conditional expression to <strong><a href=\"https:\/\/pandas.pydata.org\/docs\/getting_started\/intro_tutorials\/03_subset_data.html#how-do-i-filter-specific-rows-from-a-dataframe\">filter specific rows from a DataFrame<\/a><\/strong> into a new DataFrame.\u00a0 Here, we subset all Proclaimed Forest Areas that are larger than 1 million acres.\u00a0 This gives us a new DataFrame containing 58 of the original 90 rows.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2928911,"id":2928911,"title":"cleaning_2","filename":"cleaning_2.png","filesize":152401,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/cleaning_2","alt":"","author":"154341","description":"","caption":"","name":"cleaning_2","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:19:40","modified":"2025-08-13 19:19:40","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1540,"height":814,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2.png","medium-width":464,"medium-height":245,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2.png","medium_large-width":768,"medium_large-height":406,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2.png","large-width":1540,"large-height":814,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2-1536x812.png","1536x1536-width":1536,"1536x1536-height":812,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2.png","2048x2048-width":1540,"2048x2048-height":814,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2-826x437.png","card_image-width":826,"card_image-height":437,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/cleaning_2.png","wide_image-width":1540,"wide_image-height":814}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>Last, we\u2019ll convert our subset Spatially Enabled DataFrame to a feature layer in ArcGIS Online using the<strong><em> <a href=\"https:\/\/developers.arcgis.com\/python\/latest\/guide\/part3-data-io-writing-data\/#publish-as-a-feature-layer\">.to_featurelayer<\/a><\/em><\/strong> method.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2928921,"id":2928921,"title":"published_layer","filename":"published_layer.png","filesize":149068,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/published_layer","alt":"","author":"154341","description":"","caption":"","name":"published_layer","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:20:11","modified":"2025-08-13 19:20:11","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1417,"height":459,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","medium-width":464,"medium-height":150,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","medium_large-width":768,"medium_large-height":249,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","large-width":1417,"large-height":459,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","1536x1536-width":1417,"1536x1536-height":459,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","2048x2048-width":1417,"2048x2048-height":459,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer-826x268.png","card_image-width":826,"card_image-height":268,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/published_layer.png","wide_image-width":1417,"wide_image-height":459}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"sidebar","content":"<p><strong>Note: <\/strong>Publishing a feature layer requires a <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/api-reference\/arcgis.features.toc.html#arcgis.features.GeoAccessor.to_featurelayer\">geometry engine<\/a><\/strong>.\u00a0 If you receive an error message stating that you need to install an additional Python library (e.g. <strong><a href=\"https:\/\/pypi.org\/project\/pyshp\/\">PyShp<\/a><\/strong>), please use the instructions for notebook-scoped library installation and then restart the kernel if prompted to do so.<\/p>\n","image_reference":false,"layout":"standard","image_reference_figure":"","snippet":"","spotlight_name":"","section_title":"","position":"Center","spotlight_image":false},{"acf_fc_layout":"content","content":"<p>Back in our ArcGIS Online organization, we see our newly published hosted feature layer containing only the 58 Proclaimed Forest Boundaries that are larger than 1 million acres.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":2928931,"id":2928931,"title":"feature_layer","filename":"feature_layer.png","filesize":122747,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/feature_layer","alt":"","author":"154341","description":"","caption":"","name":"feature_layer","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:20:57","modified":"2025-08-13 19:20:57","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1420,"height":354,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","medium-width":464,"medium-height":116,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","medium_large-width":768,"medium_large-height":191,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","large-width":1420,"large-height":354,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","1536x1536-width":1420,"1536x1536-height":354,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","2048x2048-width":1420,"2048x2048-height":354,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer-826x206.png","card_image-width":826,"card_image-height":206,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer.png","wide_image-width":1420,"wide_image-height":354}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"image","image":{"ID":2928941,"id":2928941,"title":"feature_layer_data","filename":"feature_layer_data.png","filesize":103821,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\/feature_layer_data","alt":"","author":"154341","description":"","caption":"","name":"feature_layer_data","status":"inherit","uploaded_to":2746412,"date":"2025-08-13 19:21:13","modified":"2025-08-13 19:21:13","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1824,"height":496,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data.png","medium-width":464,"medium-height":126,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data.png","medium_large-width":768,"medium_large-height":209,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data.png","large-width":1824,"large-height":496,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data-1536x418.png","1536x1536-width":1536,"1536x1536-height":418,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data.png","2048x2048-width":1824,"2048x2048-height":496,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data-826x225.png","card_image-width":826,"card_image-height":225,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/feature_layer_data.png","wide_image-width":1824,"wide_image-height":496}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p><strong>What about the map widget?<\/strong><\/p>\n<p>Currently, Databricks Notebooks are not compatible with the map widget (the <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/api-reference\/arcgis.map.toc.html\">arcgis.map module<\/a><\/strong>). The map widget in the ArcGIS API for Python requires ipywidgets 8.x, while Databricks Notebooks currently supports ipywidgets up to version 7.7.2. You can still use the <strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/api-reference\/arcgis.map.toc.html#arcgis.map.Map\"><em>Map<\/em><\/a><\/strong> and <em><strong><a href=\"https:\/\/developers.arcgis.com\/python\/latest\/api-reference\/arcgis.map.toc.html#arcgis.map.Scene\">Scene<\/a><\/strong><\/em> classes in your scripts, but there are no visualization capabilities at this time.<\/p>\n<p><strong>Community and collaboration<\/strong><\/p>\n<p>You can use the <strong><a href=\"https:\/\/community.esri.com\/t5\/arcgis-api-for-python\/ct-p\/arcgis-api-for-python?aduc=PublicRelations&amp;sf_id=7015x000000vfizAAA&amp;aduco=sept-2024-release-blog&amp;aduca=MIArcGISAPIForPythonDeveloper&amp;utm_id=7015x000000vfizAAA&amp;adum=Blog&amp;utm_campaign=MIArcGISAPIForPythonDeveloper&amp;utm_source=PublicRelations&amp;utm_medium=Blog&amp;utm_content=sept-2024-release-blog\">ArcGIS API for Python Esri Community page<\/a><\/strong>\u00a0to ask specific questions, suggest ideas for enhancements and improvements, connect with other users, and read\u00a0<strong><a href=\"https:\/\/www.esri.com\/arcgis-blog\/?s=#ArcGIS%20API%20for%20Python\">recent blogs<\/a><\/strong>.\u00a0 You can also use the\u00a0<strong><a href=\"https:\/\/github.com\/Esri\/arcgis-python-api\/issues\">ArcGIS API for Python public GitHub repo<\/a><\/strong> to submit bugs, enhancement requests, and other issues.\u00a0 The team monitors these pages very closely, and we use your feedback and suggestions to help us prioritize what we build into the API going forward!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n"}],"related_articles":"","show_article_image":false,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/api-for-python-blog-CARD.png","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/api-for-python-blog-WIDE.png"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>New! Use the ArcGIS API for Python in Databricks Notebooks<\/title>\n<meta name=\"description\" content=\"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New! Use the ArcGIS API for Python in Databricks Notebooks\" \/>\n<meta property=\"og:description\" content=\"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-14T14:53:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\"},\"author\":{\"name\":\"Nicholas Giner\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/2dc4741deea59d3274cfa775e52501b2\"},\"headline\":\"New! Use the ArcGIS API for Python in Databricks Notebooks\",\"datePublished\":\"2025-04-17T22:20:00+00:00\",\"dateModified\":\"2025-08-14T14:53:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\"},\"wordCount\":10,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"API for Python\",\"ArcGIS API for Python\"],\"articleSection\":[\"Announcements\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\",\"name\":\"New! Use the ArcGIS API for Python in Databricks Notebooks\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2025-04-17T22:20:00+00:00\",\"dateModified\":\"2025-08-14T14:53:53+00:00\",\"description\":\"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New! Use the ArcGIS API for Python in Databricks Notebooks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/2dc4741deea59d3274cfa775e52501b2\",\"name\":\"Nicholas Giner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/headshot-e1610030307989-213x200.jpeg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/headshot-e1610030307989-213x200.jpeg\",\"caption\":\"Nicholas Giner\"},\"description\":\"Nick Giner is a Product Manager for Spatial Analysis and Data Science. Prior to joining Esri in 2014, he completed Bachelor\u2019s and PhD degrees in Geography from Penn State University and Clark University, respectively. In his spare time, he likes to play guitar, golf, cook, cut the grass, and read\/watch shows about history.\",\"sameAs\":[\"www.linkedin.com\/in\/nicholas-giner-0282966b\",\"https:\/\/x.com\/NickGiner\"],\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/nginer\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"New! Use the ArcGIS API for Python in Databricks Notebooks","description":"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks","og_locale":"en_US","og_type":"article","og_title":"New! Use the ArcGIS API for Python in Databricks Notebooks","og_description":"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2025-08-14T14:53:53+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks"},"author":{"name":"Nicholas Giner","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/2dc4741deea59d3274cfa775e52501b2"},"headline":"New! Use the ArcGIS API for Python in Databricks Notebooks","datePublished":"2025-04-17T22:20:00+00:00","dateModified":"2025-08-14T14:53:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks"},"wordCount":10,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["API for Python","ArcGIS API for Python"],"articleSection":["Announcements"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks","name":"New! Use the ArcGIS API for Python in Databricks Notebooks","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2025-04-17T22:20:00+00:00","dateModified":"2025-08-14T14:53:53+00:00","description":"This blog details the steps for installing and using the ArcGIS API for Python in a Databricks Notebook on Azure.","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"New! Use the ArcGIS API for Python in Databricks Notebooks"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/2dc4741deea59d3274cfa775e52501b2","name":"Nicholas Giner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/headshot-e1610030307989-213x200.jpeg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2021\/01\/headshot-e1610030307989-213x200.jpeg","caption":"Nicholas Giner"},"description":"Nick Giner is a Product Manager for Spatial Analysis and Data Science. Prior to joining Esri in 2014, he completed Bachelor\u2019s and PhD degrees in Geography from Penn State University and Clark University, respectively. In his spare time, he likes to play guitar, golf, cook, cut the grass, and read\/watch shows about history.","sameAs":["www.linkedin.com\/in\/nicholas-giner-0282966b","https:\/\/x.com\/NickGiner"],"url":"https:\/\/www.esri.com\/arcgis-blog\/author\/nginer"}]}},"text_date":"April 17, 2025","author_name":"Multiple Authors","author_page":"https:\/\/www.esri.com\/arcgis-blog\/products\/api-python\/announcements\/new-use-the-arcgis-api-for-python-in-databricks-notebooks","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/04\/api-for-python-blog-WIDE.png","primary_product":"ArcGIS API for Python","tag_data":[{"term_id":152942,"name":"API for Python","slug":"api-for-python","term_group":0,"term_taxonomy_id":152942,"taxonomy":"post_tag","description":"","parent":0,"count":9,"filter":"raw"},{"term_id":387782,"name":"ArcGIS API for Python","slug":"arcgis-api-for-python","term_group":0,"term_taxonomy_id":387782,"taxonomy":"post_tag","description":"","parent":0,"count":44,"filter":"raw"}],"category_data":[{"term_id":37101,"name":"Announcements","slug":"announcements","term_group":0,"term_taxonomy_id":37101,"taxonomy":"category","description":"","parent":0,"count":1976,"filter":"raw"}],"product_data":[{"term_id":36841,"name":"ArcGIS API for Python","slug":"api-python","term_group":0,"term_taxonomy_id":36841,"taxonomy":"product","description":"","parent":36601,"count":151,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=api-python","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2746412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/154341"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=2746412"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/2746412\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=2746412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=2746412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=2746412"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=2746412"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=2746412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}