From the course: Python Scripting Using the ArcGIS API for Python

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Incorporating widgets for user interaction

Incorporating widgets for user interaction

- [Instructor] I want to show you how to use interactive widgets in ArcGIS Notebooks. I'm talking about slider bars and input boxes and even maps. I'll show you how to incorporate these into your notebooks to display online content and to get user input. Let's start with the basics. What are widgets in ArcGIS Notebooks? Widgets, some of which are provided by the IPyWidgets library and others by the ArcGIS module, allow me to add interactive controls to my notebooks. They can be anything from sliders, dropdown menus, checkboxes, and text boxes, but also buttons and even maps. Using these widgets, I can easily build interactive interfaces that let users change parameters and see real-time updates to maps and charts and tables. There's another important component here we need to discuss. ArcGIS Notebooks includes IPython. IPython includes a display module. This display module allows lots of different data types to be displayed directly in a notebook. I can display objects like map layers…

Contents