-
Notifications
You must be signed in to change notification settings - Fork 299
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
Be able to specify Smart Send
to use IPython
#15988
Comments
Hello @anandijain Thank you for the feature request, and the compliment! Is there any reason that you favor IPython? We are in a process of investigating and thinking about VS Code native REPL experience here: microsoft/vscode-python#22674 and microsoft/vscode-python#23029 but would love more of your feedback on why you prefer IPython. |
I stumbled onto this thread and I think this would be a great addition if it ends up making sense. I may not be understanding correctly, but iPython has things like tab completion, history, etc. Perhaps these additional features are what @anandijain was referencing? |
Hey @anthonykim1, this issue might need further attention. @anandijain, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Hi @anthonykim1 we are alll using vscode in our group, coding jax. All of us use jupyter in our interactive sessions, and having smart send for jupyter would be a major benefit. |
Thank you all for the feedback! To enable this feature: you may click on setting and type 'repl' or add: Also strongly agree with the smart send. Not exactly with IPython but we are working to get it working with the native REPL that just got shipped last month: microsoft/vscode-python#23521 |
I just installed the newest update and was excited to try the native REPL + smart send and was immediately disappointed to discover that it doesn't work with my conda environments. For me at least, the ideal behavior would be for smart send to either send to my currently active terminal OR to detect the currently active environment in that terminal and then use that kernel. |
@TraceBivens Hello! Thanks for trying out the native REPL along with smart send. You are right that the ideal behavior should be us respecting your most recently activated environment as a dedicated kernel/engine for Python REPL. Does this behavior persist when you "Python: Clear cache and reload" on command palette? |
For me, I found this issue because I was looking for the ability to view tabular data in “Data Wrangler”, variable inspection and viewing plots. These are supported in Jupyter but “Smart send” is much better than having to type out Jupyter cells explicitly. These features are well implemented in the julia-vscode extension, so I would suggest looking at how the repl interaction is implemented there for some inspiration. |
I came here looking to make this same request. I hadn't heard of the native REPL before seeing this thread. I'm using VS Code 1.92.0 and the native REPL is working great with smart send. I like that it doesn't require the Jupyter extension or the I am seeing one quirk with it though: when I do shift+enter on a line/block of code, it sends it to the native REPL but then my cursor is automatically moved to the REPL's text input window. I would much prefer it to jump ahead to the next line of runnable (i.e., skip comments) code. Then I can spam shift+enter to progress through my script interactively. |
This has been requested already. Please give this feature request a thumb up: microsoft/vscode-python#23843 |
Hey @anthonykim1, this issue might need further attention. @anandijain, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Hi @anthonykim1 ! I was looking for something similar and found this thread. |
Hello @andredmoliveira ! I'm super glad you are liking Smart Send feature :) You should be able to use smart send with the native repl. Reference: microsoft/vscode-python#23521 Having upvotes on this issue/request would probably get us more support for smart send with "jupyter.interactiveWindow.textEditor.executeSelection": true though. |
Thanks @anthonykim1 for your replies and work. The problem with the native REPL is that it lacks several features as of now. The most important for me are :
|
upvote for this feature! I think the Additionally, having the option to choose whether or not to move the cursor after sending the smallest runnable code snippet to the kernel, or being able to configure different keyboard shortcuts — similar to how Shift+Enter and Cmd+Enter work in Jupyter — would be incredibly helpful! By the way, I really appreciate @anthonykim1 and the team adding these amazing features! |
It'd be nice if I could use IPython instead of vanilla python repl with smart send. other than that it is an amazing and crucial feature - Thanks!
The text was updated successfully, but these errors were encountered: