posit-dev / positron

Positron, a next-generation data science IDE
Other
1.35k stars 40 forks source link

Run selected code/line in Jupyter notebook #3804

Open ntluong95 opened 3 days ago

ntluong95 commented 3 days ago

I would like to ask for the feature to run only selected text/line in Jupyter notebook

In Google Colab, you have the option to run only selected code/line by pressing Ctrl + Shift + Enter. Here I just highlighted only "flights" and run, so it showed the dataframe, not the result of "1+1" image

juliasilge commented 3 days ago

@nstrayer would it be appropriate to add this this to one of the Jupyter Keymap issues #2357 or #3014?

nstrayer commented 2 days ago

Hmm, If I'm not mistaken this is a special feature of colab so it isn't getting us back to parity with plain jupyter notebooks (as those issues are about doing) but taking us beyond. Worth adding as a feature request though. I agree it's a nice feature.