Skip to content

Add Python Shell Type and .python_history - #204680

Merged
Anthony Kim (anthonykim1) merged 25 commits into
microsoft:mainfrom
anthonykim1:PythonShellHistory
Feb 15, 2024
Merged

Add Python Shell Type and .python_history#204680
Anthony Kim (anthonykim1) merged 25 commits into
microsoft:mainfrom
anthonykim1:PythonShellHistory

Conversation

@anthonykim1

@anthonykim1 Anthony Kim (anthonykim1) commented Feb 8, 2024

Copy link
Copy Markdown
Contributor

Resolves: microsoft/vscode-python#22878 microsoft/vscode-python#22780

  • Adding Python shell types and adding fetch history to access and show user's ~/.python_history.
  • ~/.python_history stores Python command history line by line. This file gets refreshed for every instance of Python REPL, where session ends with exit()
  • Having Python shell type defined, we are now able to get session history that respect/distinguish Python shell type from user's shell that executes Python shell type such as zsh, bash, pwsh, etc.

@anthonykim1

Anthony Kim (anthonykim1) commented Feb 15, 2024

Copy link
Copy Markdown
Contributor Author

Daniel Imms (@Tyriar) I'm planning to add type for Julia and NuShell in subsequent PR.

@anthonykim1
Anthony Kim (anthonykim1) merged commit d30f701 into microsoft:main Feb 15, 2024
@microsoft Microsoft (microsoft) locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Python REPL Shell File History

5 participants