Hi all !
I am facing SyntaxError at JSON.parse while using pydeck_chart. Note I created mapbox account and set my token to ~/.streamlit/config.toml.
I would be grateful if you can give me some advice.
Here is the error message and my code.
import streamlit as st
import pydeck as pdk
import pandas as pd
map_style = "mapbox://styles/mapbox/streets-v11"
initial_view_state = pdk.ViewState(latitude=0,longitude=0,zoom=13,pitch=50)
st.pydeck_chart(pdk.Deck(map_style = map_style, initial_view_state = initial_view_state,
layers=[pdk.Layer("ScatterplotLayer",data=df, get_position='[lon, lat]',get_color='[200, 20, 0, 100]',get_radius=10)]))
Python 3.6.1
UbuntuOS 18.04
streamlit 0.71.0
pydeck 0.5.0
Thank you.