posit-dev / posit-dev/positron
Command to restart the console and execute the current file
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
This is a super commonly used command in Jupyter Notebooks. I've also seen it recommended for data scientists to improve the reproducibility since otherwise one can end up in a weird irreproducible state that involved running code that's now deleted or running code out-of-order.
I found myself doing Cmd+Shift+0, waiting a bit, then Cmd+Shift+Enter to replicate this. If addressing https://github.com/posit-dev/positron/issues/3085 makes it so that one could do: Hold Cmd+Shift down, quickly press 0 and then Enter, release Cmd+Shift, that would work for me too. Otherwise, a separate command bound to a keyboard shortcut would be great.
Contributor guide
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 by reviewing issue #3085 and the existing console restart and current-file execution commands and keybindings mentioned here. Done means a command or shortcut can restart the console and then execute the current file in the requested sequence, with the behavior verified in the IDE.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop, developer-experience
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100