Skip to content

Add svg for profiling tasks. #259

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 2 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
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
141 changes: 141 additions & 0 deletions docs/source/_static/images/profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/source/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
releases are available on [PyPI](https://pypi.org/project/pytask) and
[Anaconda.org](https://anaconda.org/conda-forge/pytask).

## 0.2.0 - 2022-xx-xx
## 0.2.1 - 2022-xx-xx

- {pull}`259` adds an `.svg` for profiling tasks.

## 0.2.0 - 2022-04-14

- {pull}`211` allows for flexible dependencies and products which can be any pytree of
native Python objects as supported by pybaum.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorials/profiling_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ $ pytask profile

Here is an example

```{image} /_static/images/pytask-profile.png
```{image} /_static/images/profile.svg
```
12 changes: 12 additions & 0 deletions scripts/svgs/profile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from __future__ import annotations

import pytask
from click.testing import CliRunner


if __name__ == "__main__":
runner = CliRunner()

pytask.console.record = True
runner.invoke(pytask.cli, ["profile"])
pytask.console.save_svg("profile.svg", title="pytask")