- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 03:35 AM
Assume we have a given cell
print('A')
print('B')
print('C')
I want to run only the below line.
print('B')
Obviously, I can seperate the cell into three and run the one I want, but this is timely. This is a feature I use so often (e.g. in pycharm) and would like to know if there is any way in Databricks notebook, preferably with a keyboard shortcut.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 04:52 AM
With the new editor it is possible for some time now. Posting here for convenience.
Just select the lines and press ctrl+shift+enter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 04:11 AM
This looks promising. I am not aware of this. Would you mind sharing the snaps from pycharm?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 04:36 AM
I am guessing you want to know how to do this in PyCharm. In PyCharm Community Edition 2021.2, File>Settings>Keymap> type 'execute' in search bar. I am using Ctlr+Enter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2022 09:42 AM
Hi @Volkan Gumuskaya I am afraid we do not have a way to do this on a notebook command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2022 11:40 PM
Hi @Volkan Gumuskaya
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 04:52 AM
With the new editor it is possible for some time now. Posting here for convenience.
Just select the lines and press ctrl+shift+enter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 05:28 AM

