I am creating a command line tool using arcpy, and I would like to be able to create a simple data set preview from the command line. How can I create such a map?
I believe the only environment you can do this in would be the Jupyter Notebook. See the section Display the Web Map in the below link:
Working with web maps and web scenes | ArcGIS for Developers
Retrieving data ...