question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

epic: CML <> DVCLive

See original GitHub issue

Make it easy to publish CML reports from DVCLive.

cml comment create --publish --watch=1min report.md &
python train.py --dvclive-report=report.md

future follow-up

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
casperdclcommented, Jun 30, 2022

@daavoo soon (after #1073 <- #762), the idea is:

# simple
cml report watch --publish report.md &
python dvclive_script.py --output=report.md

# synchronised alternative
cml report watch --publish --trigger-file=/tmp/dvclive report.md &
python dvclive_script.py --output-report=report.md --output-trigger=/tmp/dvclive

where the “synchronised alternative” flow avoids potential contention. TL;DR pseudocode:

DVCLive

def next_step():
    ...
    if output_report:
        if output_trigger and output_trigger != output_report:
            if not output_trigger.exists():
                mkreport(output)
                output_trigger.touch()
        else:
            mkreport(output)

CML

while True:  # watcher thread
    if triggerFile and triggerFile != reportFile:
        if exists(triggerFile):
            upload(reportFile, ignore_missing=True)
            rm(triggerFile)
    else:
        upload(reportFile, ignore_missing=True, only_if_changed=True)
1reaction
daavoocommented, Jun 14, 2022

🔔 @daavoo with regard to #1036 (comment)

I think I prefer the current approach in the P.R.

What would be the main benefit of this alternative? The ability to share env vars with the child process?

What happens when integrating with DVC cml whatever dvc repro?

CML could trigger comment updates when the child process outputs a magic string to the standard output/error

This feels a little more clunky to me than the file watcher approach.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Phase III EPIC Trial of Ponatinib versus Imatinib in Newly ...
Epic : A Phase 3 trial of ponatinib compared with imatinib in patients with newly diagnosed chronic myeloid leukemia in chronic phase (CP-CML)....
Read more >
conda-forge - :: Anaconda.org
aiohttp-xmlrpc, 1.5.0, MIT, X, aiohttp XML-RPC server handler and client ... a bring-your-own-IO implementation of the EPICS Channel Access protocol.
Read more >
EPIC Trial Shows Ponatinib Effective in CML
EPIC was a multicenter, international, phase 3, randomized, 2-arm, open-label trial of ponatinib (45 mg once daily) compared with imatinib (400 ...
Read more >
Untitled
Uvistar 5m, The royals season 1 episode 1 trailer, Epic meal time pizza pocket ... Kwerenda co to, Php4 xml to object, Finite...
Read more >
2020年02月07日到期删除的国际域名
... dv778899.com dva-faraona.com dvakvvihmh.com dvcstreaming.com ... ephemeralstudio.com epi-ins.info epic-organics.com epicaauto.com ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found