dberenbaum
7e7d0e1dd8
merge plot ids across dvc.yaml files
2023-09-14 10:36:46 -04:00
skshetry
4c8f539c56
plots: log failures during datapoint conversions ( #9726 )
...
Fixes #9441 .
Note that we do merge props, and use that for all revision. So you may
see warning for multiple revisions.
2023-07-12 19:14:31 +05:45
skshetry
43195a806d
plots: return errors in json format ( #9146 )
...
* plots: return errors in json format
* plots --json: move plots data into data key
* rename revision key to rev
* move imports to top-level
* add tests
2023-03-27 12:53:43 +05:45
pre-commit-ci[bot] and David de la Iglesia Castro
48b56c83dc
[pre-commit.ci] pre-commit autoupdate ( #9168 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.257](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.254...v0.0.257 )
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.2.4 )
* pre-commit: fix ruff errors
* pre-commit: fix flake8
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: David de la Iglesia Castro <[email protected] >
2023-03-23 13:05:31 +00:00
skshetry
dae8515933
plots: small refactorings ( #9206 )
2023-03-17 19:42:27 +05:45
David de la Iglesia Castro
2d820cccad
deps: bump dvc-render>=0.3.1<0.4.0.
...
For https://github.com/iterative/dvc-render/pull/124
2023-03-16 21:36:02 +01:00
David de la Iglesia Castro
dde456c923
plots: Fix match_defs_renderers when plots are defined in nt format.
...
`plots.show` returned `definitions` in native `nt` format but sources in `posixpath` format so the matching was failing.
Closes #8689
- Add `test_show_plots_defined_with_native_os_path`.
2023-03-06 19:16:29 +01:00
skshetry
e7d4f5b24e
tests: filter warnings ( #9115 )
2023-03-06 15:41:45 +05:45
Dave Berenbaum
35b648bbcf
plots: shorten names in the legend ( #8900 )
...
* plots: shorten field names
* plots: handle missing field names
* plots: make compatible with py3.8
* plots: fix for missing data
* plots: add test for field shortening
* plots: strip separators regardless of os
* plots: don't shorten field name
* plots: drop test for shortening field name
2023-02-24 17:26:16 +01:00
skshetry
1de37556d5
bump ruff to v0.0.247 ( #9050 )
...
* bump ruff to v0.0.247
* ruff: enable pep8-naming check
rename some camelCased APIs, especially in logger
rename G variables to graph
ignore some variable namings and help messages in dvc.commands
2023-02-18 16:50:35 +05:45
skshetry
be824ede0d
render: avoid deepcopying ( #9033 )
...
* render: avoid deepcopying
* remove unnecessary line
2023-02-15 16:25:45 +05:45
skshetry
a86470ccbc
update black and change line-length to 88 ( #8953 )
2023-02-04 05:28:07 +02:00
skshetry
7a65ac06b2
mypy: don't ignore all imports, also disallow implicit optional ( #8814 )
...
* mypy: don't ignore all imports
* mypy: disallow implicit_optional
2023-01-15 16:25:03 +05:45
skshetry
90a27179eb
ruff: ignore complex functions and remove dvc.utils.fs.makedirs ( #8795 )
...
We may want to prevent any new functions from getting complex.
2023-01-11 17:58:51 +05:45
skshetry
5441964fdb
add ruff ( #8793 )
...
* add ruff linter
* enable few more checks
2023-01-11 15:20:38 +05:45
dberenbaum
6fc0a6ff98
plots: accept any number of y data sources
2022-12-20 14:32:40 +01:00
dberenbaum
b4b5db4b4e
plots: accept list of y vals
2022-12-20 14:32:40 +01:00
dberenbaum
d8068430e7
plots: fix multi-file plots
2022-11-29 16:08:29 +01:00
dberenbaum
61a02e6f56
plots: set default x label
2022-11-21 21:05:12 +01:00
Paweł Redzyński
ba2e8bdac7
plots: data conversion: adjust for viewer backend ( #8421 )
...
* plots: vega: converter: support multi series data split and props inference
Fixes : #7754 , #8399
Related: iterative/studio#4369
* plots: converter: make converter infer x and y labels if not provided
* plots: vega: converter: roll back to datapoints format
* plots: vega: converter: refactor
* plots: infer labels on
* plots: get_plot_id: fix naming
* plots: vega: converter: notes regarding converting
2022-11-18 12:36:00 +00:00
Paweł Redzyński
25ea5f35ec
plots: pass all types of plots in --json option
...
Related: iterative/vscode-dvc#1757
2022-09-27 14:23:42 +02:00
Paweł Redzyński
fbb98a87d1
plots: introduce flexible plots configuration to dvcfiles
...
Closes : #7086
2022-07-01 13:17:24 +02:00
David de la Iglesia Castro
c336507e51
render: image_converter: Support slash in revision.
...
Fixes #7934
2022-06-27 10:53:03 +02:00
Paweł Redzyński
20c7b0e3e6
plots: grouping: stop using dpath.util.search
2022-06-03 16:48:33 +03:00
David de la Iglesia Castro
3d791778de
plots: Pass templates_dir to match_renderers.
...
We were forgetting to pass default template dir.
Fixes #7817 .
2022-05-31 16:17:58 +02:00
Saugat Pachhai (सौगात)
60cbcec399
formatting: consider dvc-render as a known first party for ordering imports
2022-05-23 15:49:47 +05:45
Paweł Redzyński
9d476aab8b
plots: image converter return absolute paths
2022-05-04 10:57:13 +02:00
David de la Iglesia Castro
bea7d56bd5
plots: Fix repo with removed plots
...
Changes in dvc-render 0.0.5 caused error.
2022-04-27 11:53:30 +02:00
Paweł Redzyński
10bcc9971d
plots: tests: integration tests for studio
...
Related: #7549
2022-04-26 21:32:56 +02:00
Paweł Redzyński
700b648da9
plots: tests: integration test for vscode
...
Closes : #7549
2022-04-26 21:32:56 +02:00
David de la Iglesia Castro
a394498067
render.match: Skip errored revisions in get_files
2022-04-22 16:44:52 +02:00
Paweł Redzyński
bfb1b74923
plots: image: fix image to_json structure
2022-04-01 12:26:20 +02:00
David de la Iglesia Castro
ead7724824
render: vega_converter: make rev and filename optional.
...
Add `FILENAME_FIELD`.
2022-03-28 19:34:05 +02:00
David de la Iglesia Castro
ddd6c97f71
render: Extract to dvc_render
...
Create and use separate package for rendering logic.
Closes #6944
2022-03-28 19:34:05 +02:00
Paweł Redzyński
3b4d76df42
plots: json: add datapoints to vega plots
2022-02-25 17:12:45 +01:00
Paweł Redzyński
a3144482ba
render: vega: data processing outside of renderers
...
Fixes : #6943
2022-01-07 10:39:12 +01:00
David de la Iglesia Castro
4d5be46ab4
exp show --html: Handle fill_value.
...
Adds new argument `fill_value` to ParallelCoordinatesRenderer.
For scalar columns, prevent converting to categorical by explictly inserting None when value is missing (value == fill_value).
For categorical columns, replace `fill_value` with `"Missing"` and ensure it is the last item so it gets rendered on top of the column.
2021-12-17 14:45:12 +09:00
David de la Iglesia Castro
5ee82d4000
exp show: Add parallel coordinates plot.
...
Uses `TabularData.to_parallel_coordinates`.
Adds new arguments: `html`, `out`, `open`
Reuses `--sort-by` to define colorscale.
Closes #4455
2021-12-17 14:45:12 +09:00
David de la Iglesia Castro
19b3c82698
dvc render: Add plotly parallel coords renderer
...
New renderer based on plotly. Not exposed to `dvc plots`.
Generate plotly datapoints from `TabularData`.
pre-requisite #4455
2021-12-17 14:45:12 +09:00
Paweł Redzyński
e24de3a0f3
plots: introduce --json option
...
Fixes : #7073
2021-12-15 11:05:57 +01:00
Paweł Redzyński
6723a34bda
render: image: make html less ugly
2021-12-05 15:42:07 +02:00
Paweł Redzyński
e0fd0790fc
plots: special chars handling for vega plots paths
...
Fixes : #6894
2021-11-17 01:57:35 +02:00
David de la Iglesia Castro
4a1985d7cd
dvc render: Add RENDERERS registry.
...
Related: #6840 , #4455 , #6943
2021-11-15 16:37:24 +01:00
b652670cbf
Dependabot/pip/pylint 2.11.1 ( #6843 )
...
* build(deps): Bump pylint from 2.9.6 to 2.11.1
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.9.6 to 2.11.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.11.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix pylint problems
* Updation after rebase.
* system: use binary mode
* Set remote execution script encoding type locale
* Update dvc/machine/__init__.py
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ruslan Kuprieiev <[email protected] >
Co-authored-by: Peter Rowlands (변기호) <[email protected] >
2021-10-20 14:34:10 +03:00
Gao
6de3e734ed
Revert "build(deps): Bump pylint from 2.9.6 to 2.11.1 ( #6636 )" ( #6842 )
...
This reverts commit 464620806c .
2021-10-20 12:41:00 +03:00
464620806c
build(deps): Bump pylint from 2.9.6 to 2.11.1 ( #6636 )
...
* build(deps): Bump pylint from 2.9.6 to 2.11.1
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.9.6 to 2.11.1.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.11.1 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* fix pylint problems
* system: use binary mode
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: karajan1001 <[email protected] >
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2021-10-20 10:32:44 +08:00
Paweł Redzyński
a1b146669c
plots: load templates from package ( #6550 )
...
* plots: vega: make interactive linear default plot
* plots: stop dumping default templates
* plots: move templates to package initial
* plots: update default plots schema
* plots: write defaults on init
* templates: migrate to importlib.resources
* fixup
* fixup
2021-10-14 08:40:31 +02:00
Paweł Redzyński
d6ecef7169
plots: fix wrong link ( #6693 )
2021-10-11 12:22:20 +02:00
Paweł Redzyński
3e68cd7105
plots: use dpath to explore data ( #6639 )
2021-09-17 15:09:28 +02:00
David de la Iglesia Castro
21585d18ab
Force sorted order in plots rendering ( #6601 )
...
* Force sorted order in plots
* Fix type hint
* Fixed mypy
* Updates test_plots
* Removed reduntant test
* Removed unused import
2021-09-16 14:25:03 +08:00