[Fixed] KeyError for self.plot_1.data

What I’m trying to do:
Publish plot on Webpage with Plotly

What I’ve tried and what’s not working:
This was working on January 19 and is now not working. Was there a change to anvil.util???

Getting this error:
KeyError: anvil.util at [Form1, line 175]

self.plot_1.data = XXX

This is the issue. I know that my dict has the correct information for data and layout because I can load the same information on a different page from a global based on this dict. There is something wrong with the plot_1.data assignment.

Code Sample:

    fig = json.loads(result)
    self.plot_1.height = len(fig['data'][0]['cells']['values'][0]) * fig['data'][0]['cells']['height'] * 1.38
    **self.plot_1.data = fig['data']**
    self.plot_1.layout = fig['layout']


I think you might have removed this line from the form

import plotly.graph_objects as go

But you’re right that your plots should work without that line so moving to bug reports and we’ll get that fixed.

It looks like this issue has been resolved because the error does not occur any longer.

It has - see title change to your post.