Skip to content

experiments: temporarily disable styling in show table #4290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions dvc/command/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,29 +82,25 @@ def _show_experiments(all_experiments, console, precision=None):

metric_names, param_names = _collect_names(all_experiments)

table = Table(row_styles=["white", "bright_white"])
table.add_column("Experiment", header_style="black on grey93")
table = Table()
table.add_column("Experiment")
for name in metric_names:
table.add_column(
name, justify="right", header_style="black on cornsilk1"
)
table.add_column(name, justify="right")
for name in param_names:
table.add_column(
name, justify="left", header_style="black on light_cyan1"
)
table.add_column(name, justify="left")

for base_rev, experiments in all_experiments.items():
if Git.is_sha(base_rev):
base_rev = base_rev[:7]

for row, style, in _collect_rows(
for row, _, in _collect_rows(
base_rev,
experiments,
metric_names,
param_names,
precision=precision,
):
table.add_row(*row, style=style)
table.add_row(*row)

console.print(table)

Expand Down