Select to view content in your preferred language

Open, run Python Window in Pro from a scripting tool?

370
2
02-15-2024 10:16 AM
AlfredBaldenweck
MVP Regular Contributor

I feel gross for asking this, but does anyone know how do send code to Pro's Python Window from a scripting tool?

 

0 Kudos
2 Replies
BobBooth1
Esri Contributor

Hi Alfred,

You can copy the code to run a tool from the geoprocessing history, and then run it in the Python window or a Notebook in Pro.

https://learn.arcgis.com/en/projects/run-geoprocessing-tools-with-python/#:~:text=Exporting%20code%2...

0 Kudos
AlfredBaldenweck
MVP Regular Contributor

Thanks for the reply, Bob! Unfortunately, that is not what I am asking.

I would like to write code that opens the python window and executes code in it.

My rationale is that python window returns different results from what scripting tools do.

0 Kudos