https://prefect.io logo
#prefect-community
Title
# prefect-community
l

Leon Kozlowski

07/29/2021, 2:55 PM
Does anyone have an example of rendering a matplotlib graph with the artifacts api?
k

Kevin Kho

07/29/2021, 2:58 PM
Hey @Leon Kozlowski, I do if you want to see, but it’s basically writing out the file to an S3 bucket with appropriate permissions and then linking to it in the Markdown artifact.
l

Leon Kozlowski

07/29/2021, 3:03 PM
Ok don’t need to see example, that seems simple enough, the agent needs s3 read premission?
k

Kevin Kho

07/29/2021, 3:10 PM
The agent would need write permissions to the bucket to upload the image. And then the image needs to be public to be viewed in the markdown.
👍 1