Hello. There is an option to print clickable link ...
# ask-community
v
Hello. There is an option to print clickable link in logs? I want to be able to follow the URL link from web dagit GUI. In terminal the link is clickable but in web GUI it is a plain text. I am attaching pictures.
🤖 1
r
s
Vlad have you been successful in using
Metadata.url
?
v
@rex @sean From which version
MetadataValue.url
works? Now I'm using dagster 0.13.16
r
in 0.13.16, it was known as
EventMetadata.url
. See the 0.13.16 docs: https://docs.dagster.io/0.13.16/concepts/ops-jobs-graphs/op-events#attaching-metadata-to-outputs-
v
@rex Where I can see the Output? There is what I wrote:
Copy code
link = EventMetadata.url("<https://google.com>")
yield Output(link, output_name='result')
I tried this:
<http://context.log.info|context.log.info>(link)
but it prints plane text
Maybe I should do it differently?
r
the example is in the docs i linked:
Copy code
result = "my_result"
    yield Output(
        result,
        metadata={
            "dashboard_url": EventMetadata.url("<http://mycoolsite.com/url_for_my_data>"),
        },
    )
1
v
Thank you