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

Multi-line statements support for Python code #9014

Open
GitHunter0 opened this issue Feb 24, 2021 · 18 comments
Open

Multi-line statements support for Python code #9014

GitHunter0 opened this issue Feb 24, 2021 · 18 comments

Comments

@GitHunter0
Copy link

It would be really great to have RStudio support of multi-line statements extended to Python code as well.

image

It is a simple feature that saves a huge amount of repetitive manual work selecting code lines to run. However, no other Python IDE has it as far as I know, unfortunately.

Although solely for R code at the present moment, only RStudio has that feature, so I hope you could make it work for Python too.

Thank you

@ronblum
Copy link
Contributor

ronblum commented Feb 25, 2021

@GitHunter0 Thank you for the suggestion! I'll mark it as an enhancement to review as we continue development of RStudio, and specifically in improving our support of Python.

@GitHunter0
Copy link
Author

Hey @ronblum , thanks man!

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@github-actions github-actions bot added the stale Issues which have been closed automatically due to inactivitiy. label Aug 25, 2021
@ronblum
Copy link
Contributor

ronblum commented Aug 25, 2021

Still worth considering as we continue with Python improvements.

@stale stale bot removed the stale Issues which have been closed automatically due to inactivitiy. label Aug 25, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@github-actions github-actions bot added the stale Issues which have been closed automatically due to inactivitiy. label Feb 22, 2022
@ronblum ronblum removed the stale Issues which have been closed automatically due to inactivitiy. label Feb 22, 2022
@ntluong95
Copy link

Any plan to bring this feature in the upcoming version of Rstudio @ronblum ?

@ronblum ronblum added the triage label Aug 31, 2022
@ronblum
Copy link
Contributor

ronblum commented Aug 31, 2022

This isn't slated for an update yet. One way in which we prioritize what enhancements to include is by understanding how many people would like the feature. For that, we often look at the number of upvotes that an issue gets. So the more 👍 we get for the original post (currently at 4), the more likely we are to add it to our roadmap.

Triage: Something to consider for Cherry Blossom.

@ntluong95
Copy link

Something similar to consider in VSCode @ronblum microsoft/vscode-jupyter#1471

@liyonaj573
Copy link

how possible this feature can come in the upcoming update of Rstudio @kevinushey @hadley

@mikebessuille
Copy link
Contributor

Related to #11665, the ability to have a multiline Python code chunk that can be run as a chunk (not line by line)

@mikebessuille mikebessuille added this to the 2023 milestone Sep 13, 2022
@jmcphers
Copy link
Member

@ntluong95
Copy link

I am not sure how difficult to implement this feature on Rstudio, but at least maintaining the same experience when executing R code and Python code is needed.
Noted that Python users tend to write code by single lines instead of piping in R, but some specific cases like define a function, for loop, method chains in Pandas (wrapping between () ) can be prioritized to have the feature

@elemn
Copy link

elemn commented Jan 18, 2023

I was the individual referenced in the above thread. Bumping because it would be really great to have this feature in RStudio as it would make a more uniform experience transitioning between the few languages. Haven't been able to find a Python IDE that does as much as RStudio so I think it would be advantageous for users used to the workflow, even if stuff like piping aren't really a part of Python.

@GitHunter0
Copy link
Author

Something similar to consider in VSCode @ronblum microsoft/vscode-jupyter#1471

Another one: microsoft/vscode-python#18105

@ntluong95
Copy link

The vscode extension looks very promising. Hope Rstudio team can find the way to bring here @ronblum @jmcphers

@GitHunter0
Copy link
Author

The vscode extension looks very promising. Hope Rstudio team can find the way to bring here @ronblum @jmcphers

Just to register, the extension you are referring is this: https://github.com/kylebarron/vscode-jupyter-python

@ntluong95
Copy link

The vscode extension looks very promising. Hope Rstudio team can find the way to bring here @ronblum @jmcphers

Just to register, the extension you are referring is this: https://github.com/kylebarron/vscode-jupyter-python

But it is for vscode? I meant I want to have the same in Rstudio

@GitHunter0
Copy link
Author

But it is for vscode? I meant I want to have the same in Rstudio

Yes, it is just for VScode, I'm only mentioning it as a reference to help build one for RStudio.

@ronblum ronblum removed this from the Backlog-2 milestone Oct 5, 2023
@ronblum ronblum added this to the Later milestone Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants
@jmcphers @mikebessuille @GitHunter0 @ronblum @ntluong95 @elemn @liyonaj573 and others