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.

plots: code templates not found

See original GitHub issue

Bug Report

Since 2.8.2 my code base templates are not located as they used to be via dvc plots show/diff -t <template_name>.

As far as I can tell this is due to the path root being prefixed to the template name before matching

https://github.com/iterative/dvc/blob/e2d705fd76771c184f85a477f8d73aea40a96cab/dvc/repo/plots/template.py#L123-L129

At face value the fix may just be

templates = [
    file
    for root, _, files in os.walk(self.templates_dir)
    for file in files
]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
paredcommented, Oct 25, 2021

@mattlbeck I made a fix, you can check it out in #6866

0reactions
paredcommented, Oct 25, 2021

@mattlbeck no its not intended behaviour, let me look into that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'html template not found' error (VS Code) - Stack Overflow
To solve this question, create a folder named templates , which is where Flask looks for templates by default, then put the reg.html...
Read more >
template plot.tpl not found · Issue #6 - GitHub
hi! Unable to download html of ipynb file where I plotted graphs using plotly. Wrote the following code in jupyter notebook: !pip3 install ......
Read more >
Flask Rendering Templates - GeeksforGeeks
This is the code for actually running creating the Flask app. ... The render_template finds the app by default in the templates folder....
Read more >
Origin Help - Graph Template Basics - OriginLab
All Origin graphs are created from a template. ... Cloneable templates do not require you to pre-select data before selecting a template (data...
Read more >
plots show | Data Version Control - DVC
The plot style can be customized with plot templates, using the --template option. To learn more about plots file formats and templates, see...
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