Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conf.py 637 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  1. """
  2. Define paths to all DVC dependency and output files.
  3. """
  4. from pathlib import Path
  5. from urllib.parse import urlparse
  6. from dvc.repo import Repo
  7. dvc_repo = Repo('.')
  8. # Specify the name of your DVC remote
  9. DVC_REMOTE_NAME = 'ahsoka'
  10. # Specify the name of your remote DVC data directory for this project
  11. PROJECT_NAME = 'dvc_dask_use_case'
  12. # Get DVC remote URL to your remote work directory
  13. remote_work_path = urlparse(
  14. dvc_repo.config.config[f'remote "{DVC_REMOTE_NAME}"']['url']).path
  15. remote_work_path = Path(remote_work_path)
  16. # Specify the paths to the DVC stage dependencies and ourputs
  17. data_dir = remote_work_path/PROJECT_NAME
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...