Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python Shell Type and .python_history #204680

Merged
merged 25 commits into from
Feb 15, 2024

Conversation

anthonykim1
Copy link
Contributor

@anthonykim1 anthonykim1 commented Feb 8, 2024

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 anthonykim1 self-assigned this Feb 8, 2024
@anthonykim1 anthonykim1 marked this pull request as ready for review February 15, 2024 19:05
@vscodenpa vscodenpa added this to the February 2024 milestone Feb 15, 2024
@anthonykim1 anthonykim1 requested a review from Tyriar February 15, 2024 19:10
@anthonykim1
Copy link
Contributor Author

anthonykim1 commented Feb 15, 2024

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

@anthonykim1 anthonykim1 merged commit d30f701 into microsoft:main Feb 15, 2024
6 checks passed
@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