In addition to all the valuable answers, I would like to mention that the Spyder IDE (https://github.com/spyder-ide) has this feature as you can see in my printscreen below:
This is just an objective fact and not advertisement for any IDE :) I don't want to trigger any debate on this question.