Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 34cb828

Browse files
0x2b3bfa0casperdcl
andauthored
Remove cml publish pipe from examples (#235)
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
1 parent 2cba414 commit 34cb828

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

content/docs/cml-with-dvc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ jobs:
4444
-x actual \
4545
-y predicted \
4646
--show-vega master > vega.json
47-
vl2png vega.json -s 1.5 | cml publish --md >> report.md
47+
vl2png vega.json -s 1.5 > plot.png
48+
cml publish --md plot.png >> report.md
4849
4950
# Publish regularization function diff
5051
echo "### Effects of regularization" >> report.md
5152
dvc plots diff \
5253
--target estimators.csv \
5354
-x Regularization \
5455
--show-vega master > vega.json
55-
vl2png vega.json -s 1.5 | cml publish --md >> report.md
56+
vl2png vega.json -s 1.5 > plot.png
57+
cml publish --md plot.png >> report.md
5658
5759
cml send-comment report.md
5860
```

src/components/pages/Home/UseCasesSection/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ const UseCasesSection: React.ForwardRefRenderFunction<HTMLElement> = () => (
177177
<div> <span>- dvc plots diff </span></div>
178178
<div> <span>--target loss.csv --show-vega master &gt; vega.json</span></div>
179179
<Tooltip type="reports">
180-
<div> <span>- vl2png vega.json | cml-publish --md &gt;&gt; report.md</span></div>
180+
<div> <span>- vl2png vega.json &gt; plot.png</span></div>
181+
<div> <span>- cml-publish --md plot.png &gt;&gt; report.md</span></div>
181182
<div> <span>- cml-send-comment report.md</span></div>
182183
</Tooltip>
183184
</Code>
@@ -236,7 +237,8 @@ const UseCasesSection: React.ForwardRefRenderFunction<HTMLElement> = () => (
236237
<div> <span>dvc plots diff \</span></div>
237238
<div> <span>--target loss.csv --show-vega master &gt; vega.json</span></div>
238239
<Tooltip type="reports">
239-
<div> <span>vl2png vega.json -s 1.5 | cml-publish --md &gt;&gt; report.md</span></div>
240+
<div> <span>vl2png vega.json -s 1.5 &gt; plot.png</span></div>
241+
<div> <span>cml-publish --md plot.png &gt;&gt; report.md</span></div>
240242
<div> <span>cml-send-comment report.md </span></div>
241243
</Tooltip>
242244
</Code>

0 commit comments

Comments
 (0)