Mapbox API 关键问题

Mapbox API key issue

安装pydeck后,我设置MAPBOX_ACCESS_TOKEN:

export 
MAPBOX_ACCESS_TOKEN=pk.eyJ1Ijoibmlrb2dhbXVsaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxlRyMZPMp4ASJ0yyA

当我 运行 试图在其中显示地图的 jupyter notebook 时,我收到警告:

UserWarning: Mapbox API key is not set. This may impact available features of pydeck.

有谁知道如何正确设置 pydeck 的 mapbox 访问令牌?

能否分享一下你是如何初始化Deck的?

设置 Deck 时是否将 Mapbox API 键作为参数传递?

Deck(layers=None, views=[{"@@type": "MapView", "controller": true}], map_style='dark', api_keys=None, initial_view_state={"latitude": 0, "longitude": 0, "zoom": 1}, width='100%', height=500, tooltip=True, description=None, effects=None, map_provider='carto', parameters=None)

参考:https://deckgl.readthedocs.io/en/latest/deck.html#pydeck.bindings.deck.Deck