# Mapbox token usage

**URL:** <https://community.plotly.com/t/mapbox-token-usage/28647>\
**Category:** 📊 Plotly Python\
**Created:** [September 13, 2019, 2:11pm UTC](https://community.plotly.com/t/mapbox-token-usage/28647 "2019-09-13T14:11:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![virsto](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/virsto/32/7906_2.png) [@virsto](https://community.plotly.com/u/virsto)\
**Post date:** [September 13, 2019, 2:11pm UTC](https://community.plotly.com/t/mapbox-token-usage/28647/1 "2019-09-13T14:11:54Z")

</div>

In Plotly express graphics demo there is a section named Maps, when I try the first code block;’:

**import plotly.express as px**  
\*\* px.set\_mapbox\_access\_token(open(".mapbox\_token").read())\*\*  
\*\* carshare = px.data.carshare()\*\*  
\*\* fig = px.scatter\_mapbox(carshare, lat=“centroid\_lat”, lon=“centroid\_lon”, color=“peak\_hour”, size=“car\_hours”,\*\*  
\*\* color\_continuous\_scale=px.colors.cyclical.IceFire, size\_max=15, zoom=10)\*\*  
\*\* fig.show()\*\*

I get the follow error:

**FileNotFoundError Traceback (most recent call last)**  
 **in**   
\*\* 1 import plotly.express as px\*\*  
**----\> 2 px.set\_mapbox\_access\_token(open(".mapbox\_token").read())**  
\*\* 3 carshare = px.data.carshare()\*\*
