Hi, I have problem to update a bar plot in a Jupyter notebook. If i have the barplot as a single plot it works without problems but when i insted try to update the y-data when the barplot is a part of a subplot the figure in the notebook won’t update in spite of the fig.data.y is updated. Somehow plotly don’t notice the change and do not update the plot. Anyone out there that can explain why it fails, and maybe come up with a solution?
import plotly.offline as py
import plotly.graph_objs as go
from plotly import tools
def subplot(x=[‘giraffes’, ‘orangutans’, ‘monkeys’],y=[20, 14, 23]):
updateSubplot(fig,y=[20, 1, 23])