Question for the prefect devs -- is there anything...
# ask-community
t
Question for the prefect devs -- is there anything on the roadmap to expand features around artefacts? Ability to upload / register pngs for instance?
n
hi @Tim Galvin - would you mean rendering images in markdown artifacts in the UI and things like that? personally I'm not aware of any imminent work in that vein - but an enhancement request to that effect would be welcome! I suspect you might already know this, but you can currently do something like
Copy code
In [5]: await create_markdown_artifact(markdown="[img](<https://i.stack.imgur.com/OHJsh.png>)", key="foo")
Out[5]: UUID('8de9fb7b-3755-4fff-b03d-903ee5be990c')
which'll render as a markdown link you can follow to view, so you could store the images someplace convenient for viewing and just have the artifact link out to there
t
At the moment I am not a paying customer (although I am trying to twist arms in the office) so I feel a little bad requesting things. But exactly - I would love to be able to upload a png of pdf and have it render as an image under the artedact panel on the UI. I did etch out something a long time ago as a URL in the logs, but turned it off at some point. That does look like a much better approach than mine
n
ok check this out, i just learned that we already support this
Copy code
await create_markdown_artifact(markdown="![img](<https://i.stack.imgur.com/OHJsh.png>)", key="foo")
all i had to do was add a
!
to the front of my image link and ...
TIL
t
DUDE
Very very cool! I am going to use this asap!
n
catjam