I\'ve been following the official plotly example here, which is outdated as it is made for plotly 3. After some searching around I found the following posts detailing the issues