I'd like to use the ArcGIS API in a Jupyter notebook, and have followed the instructions here ( https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/ ) under the section "Interactive Login Experience".
When I typically log into ArcGIS online, using my web browser, I see the mixed mode setup for Portal (like described in the solution to the question here: ( https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1... )), and the URL that I am typically redirected to for login begins with "https://my-company.maps.arcgis.com/sharing/oauth2/authorize?..." .
However, when I implement the instructions for the "Interactive Login Experience" in my Jupyter notebook, I'm executing the line
gis=GIS("https://my-company.maps.arcgis.com",client_id="...")
(where, of course, "my-company" is fake and the ellipsis assigned to "client_id" is actually my Client ID)
I'm brought to a URL beginning with "https://my-company.maps.arcgis.com/sharing/rest/oauth2/authorize?..." (bold emphasis is mine---to show how this URL differs from that of my usual login page). I get an "Error 400 "Invalid redirect_uri".
What do I need to do differently?
Thank you for any insight...