Creating Experience Builder Apps using Notebooks

599
1
12-18-2023 10:49 AM
MikeEtterWSB
New Contributor II

I am trying to deploy ArcGIS Experience Builder apps using notebooks. I am creating them this way because I need to create a lot of them for different audiences. For whatever reason I am having trouble importing the library for Experience Builder. See the Import Error below. I tested this in ArcGIS Online and it work there. I assume I need to install a missing library(ies). If someone could tell me what I should install and where I should install it, that would be awesome. I haven't been able to find anything on the Developer site.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/tmp/ipykernel_126/3924572473.py in <cell line: 2>()
      1 from arcgis.mapping import WebMap
----> 2 from arcgis.apps import WebExperience
      3 import getpass
      4 
      5 # Function to create a web map

ImportError: cannot import name 'WebExperience' from 'arcgis.apps' (/opt/conda/lib/python3.9/site-packages/arcgis/apps/__init__.py)

Edit: I forgot to mention that I am doing this in Enterprise 11.1 with Notebook Server. 

0 Kudos
1 Reply
rwrenner_esri
Esri Contributor

The submodule expbuilder needs to be included:

 

from arcgis.apps.expbuilder import WebExperience

 

 https://developers.arcgis.com/python/guide/experience-builder-workflows/ 

-Rylee

0 Kudos