Select to view content in your preferred language

Listing project notebooks using ArcPy?

192
1
06-03-2024 11:33 AM
KevinDyke
Occasional Contributor

Is there a way to list notebooks associated with a given ArcGIS Pro project, like via ArcPy? I have stale notebook references I need to remove from a bunch of project files. Something like project.listNotebooks would of course be great, but any way of accessing that information programmatically would be fantastic. Thanks for any help.

0 Kudos
1 Reply
gis_bCapell
Occasional Contributor

Hi @KevinDyke 

It looks like the arcpy ArcGISProject class has some listing methods, but not what you are looking for regarding notebooks. You could setup a script to search directories for all files with the .ipynb extension. The os package can help with that. Perhaps using the folders connected to your project would be a good place to start.

0 Kudos