pytorch / pytorch/tutorials

💡 [REQUEST] - Enable separate requirements.txt for each tutorial

Open
#2,697 1 comment 0 reactions 1 assignee View on GitHub

@carljparker is already working on this.

Since Dec 6, 2023.

Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

🚀 Descirbe the improvement or the new tutorial

Request that we configure the tutorials repository and build to support a separate requirements.txt file for each tutorial. This change might require significant work and refactoring but it would bring benefits.

  • Different tutorials could use different versions of the same library--which might otherwise lead to conflicts.

  • When all of a tutorials requirements are specified with that tutorial, it is easier to precisely identify what those requirements are--and also easier to remove a tutorial from the build without disrupting other tutorials.

  • Because it is easier to understand a tutorials requirements and remove tutorials when necessary, it is easier to maintain the security of the repository.

Existing tutorials on this topic

No response

Additional context

The tutorials team will need to identify the correct priority for this work, but I wanted to get this issue in place for tracking purposes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.