Using matplotlib

Hi
I’m trying to put a matplotlib plot in a markdown_card and it’s not working
my code:
filename = getfilename(filename=q.client.filename)
data = pd.read_csv(filename, delimiter=’,’)
plt.figure(figsize=(2, 2))
plt.matshow(data.corr())
image_filename = f’{str(uuid.uuid4())}.png’
plt.savefig(_local_path + image_filename, format=‘png’)
image_path, = await q.site.upload([image_filename])
os.remove(_local_path + image_filename)

		q.page['Home'] = ui.markdown_card(
			box='3 1 2 3',
			title='Correlation Plot',
			content=f'![plot]({image_path})',
		)

the error is this ,and i think is in the upload command:

2021/02/25 12:41:52 * /2a527e8d-f9a5-43c8-9486-47378e45b26d {“d”:[{“k”:“Home”},{},{“k”:“unhandled_error”,“d”:{“view”:“markdown”,“box”:“1 1 -1 -1”,“title”:“Error”,“content”:"\nTraceback (most recent call last):\n File \"C:\\Trabalho\\Dataknowledge_wave\\venv\\lib\\site-packages\\h2o_wave\\server.py\", line 281, in _process\n await self._handle(q)\n File \".\\Main.py\", line 140, in serve\n await show_example(q)\n File \".\\Main.py\", line 112, in show_example\n image_path, = await q.site.upload([image_filename])\n File \"C:\\Trabalho\\Dataknowledge_wave\\venv\\lib\\site-packages\\h2o_wave\\core.py\", line 741, in upload\n res = await self._http.post(upload_url, files=[('files', (os.path.basename(f), open(f, 'rb'))) for f in files])\n File \"C:\\Trabalho\\Dataknowledge_wave\\venv\\lib\\site-packages\\h2o_wave\\core.py\", line 741, in <listcomp>\n res = await self._http.post(upload_url, files=[('files', (os.path.basename(f), open(f, 'rb'))) for f in files])\nFileNotFoundError: [Errno 2] No such file or directory: '29b39523-e1fc-4a9b-a5af-5afe2f15a8d2.png'\n\n"}}]}

Forget this question i’ve detected the problem