pytorch / pytorch/pytorch.github.io
improvement - add 'copy to clipboard' functionality to the "run this command" on getting started selection box
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 285
- Forks
- 317
- PR merge metrics
- No merged PRs in 30d
Description
🕋 Website
After you run through the OS, Cuda version etc. on the getting started page, you are presented with the command line to run. However, the user is forced to manually place their cursor, drag to highlight, and then ctrl-c to actually get the command.
A minor usability improvement would be to have a copy to clipboard option to make it a one click process and get the user on their way to installing faster.
To Reproduce
visit https://pytorch.org/get-started/locally
PIck a relevant config such as Nightly / Linux / 11.3 etc. to get to where you are at "Run This Command".
Note how the only way to copy the final command is to manually mouse in, get to the first char, highlight the entire sequence and then copy.
Expected behavior
A copy to clipboard icon on the right hand of the 'run this command' to easily copy and then put into my terminal to run the install.
Screenshots
current setup on pytorch.org with area of improvement:

jax site with copy to clipboard function:

Desktop (please complete the following information):
chrome browser but not really applicable
Additional context
not a huge issue, but would add some nice polish to the site.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the getting started page at https://pytorch.org/get-started/locally and inspect the configuration flow that produces the “Run This Command” selection box. Add a copy-to-clipboard control beside the command, and verify that it copies the displayed install command for the selected configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100