Select to view content in your preferred language

Which cell tag to use for AGOL Notebook parameters: injected-parameters or parameters?

38
0
8 hours ago
JustinMillsFWS
Emerging Contributor

The docs list two different cell tags to use when setting up a Notebook to use external parameters. In one place they say to use injected-parameters but in another they say to use parameters. After some experimentation I think parameters is correct when I'm calling the Notebooks from arcgis.notebook.execute_notebook(), but for now I'm tagging my parameters cell with both and it's working.  

Are there two completely different mechanisms at work and I'm just misunderstanding what's going on? My (vague) understanding is that this capability comes from Papermill, which suggests  that we should not be using injected-parameters because that's what Papermill uses when it injects the parameters.  

injected-parameters versions:

https://www.esri.com/arcgis-blog/products/arcgis-online/analytics/use-parameters-in-your-scheduled-n... 

https://doc.arcgis.com/en/arcgis-online/create-maps/prepare-a-notebook-for-automated-execution.htm#G... 

 

parameters version (this is what actually works):

https://developers.arcgis.com/python-2-3/api-reference/arcgis.notebook.html#execute-notebook
https://papermill.readthedocs.io/en/latest/usage-parameterize.html#how-parameters-work

0 Kudos
0 Replies