1

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

set_default_credentials('cartoframes')
current_creds = get_default_credentials()

Map([Layer('countries')])
3
  • I think that you need put your credentials carto.com/developers/cartoframes/reference/…
    – Fran Raga
    Commented Mar 9, 2020 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
    Commented Mar 9, 2020 at 18:04
  • 2
    If you have the solution to your problem (running your code in a jupyter notebook) please answer your own question. Commented Mar 10, 2020 at 2:40

1 Answer 1

0

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 and acknowledge you have read our privacy policy.

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