I'm new in Carto. I have been trying to figure out how Maps are used, I tried this code that is in the web; however the map is never displayed.

from cartoframes.auth import set_default_credentials, Credentials, get_default_credentials
from cartoframes.viz import Map, Layer

current_creds = get_default_credentials()

  • I think that you need put your credentials carto.com/developers/cartoframes/reference/… – Fran Raga Mar 9 '20 at 13:09
  • My credentials didn't work in my python script. However, I read that the problem is that carto is optimized for jupyter notebook so I tried there and it worked! – mar213421 Mar 9 '20 at 18:04
  • 2
    If you have the solution to your problem (running your code in a jupyter notebook) please answer your own question. – ramiroaznar Mar 10 '20 at 2:40

The solution I found was running my code in a Jupyter notebook, as it is optimized for them

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.