-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Native REPL should allow for environment configuration #23570
Comments
Hello @Apreche, thanks much for your suggestions on improving the REPL experience. I kindly appreciate it.
I do agree with you that equivalent or similar concept of IPython profiles would be great addition to the REPL experience, especially some sort of start up script that would run at the start of session which would allow users to automatically set their desired variables (such as environment variables) in a consistent manner. Or moreover, additional things that are listed in the example config file such as which scripts to automatically execute in each instance of iPython. In terms of django related, I believe there is already a feature request on this: #13027 |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
I think the bot closed this one by mistake, since there was no additional information requested by @anthonykim1, but rather an acknowledgement that it would be a neat feature. And, it really would be! So, should we reopen this? :) |
@jgorset Correct, let me reopen this with a better tag this time. Please upvote to show interest in this :) |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. Happy Coding! |
I am keeping this opened since it already has over 9 votes. |
Related as well: #13027 |
I generally like how it looks comparatively to the usual terminal and I also like how it opens on the right side of vscode. Thank you and best regards |
@LewyCoda Thanks for the feedback.
Yes, I'm thinking it may be easier to do this because the history of the cell execution are nicely divided into separate cell now, instead of having lists of undivided text in the terminal. |
For a lot of Python projects, in my case Django web projects, simply running a straight Python REPL isn't very helpful. There's a lot of environment setup and initialization that is required for the REPL to be useful within the context of the project. That's why there are facilities such as
./manage.py shell
and withdjango-extensions
./manage.py shell_plus
.Those tools are already capable of launching different Python REPLs such as the default one, bpython and iPython. It would be great if they could seamlessly launch the VSCode native Python REPL in the same way.
Failing that, there should still be extensive configuration options for the native REPL. What directory does is run in? What environment variables to set automatically? What Python code to run automatically at the start of every REPL instance?
iPython profiles is a good place to start looking for what kinds of configuration options are desirable. Every time I have ever wanted to change the behavior of a Python REPL, I've found it was possible to do with iPython.
The text was updated successfully, but these errors were encountered: