When opening a visible notebook editor this is now set as the active one. This is important information for jupyter to set some context keys correctly and by that for example show the restart kernel option directly instead of first after focusing the widget initially.
How to test
You need the jupyter and python extensions installed
Open a notebook and ensure a kernel is selected.
close and reopen it.
the restart kernel and variables toolbar entries should now be directly visible
Follow-ups
Review checklist
[x] As an author, I have thoroughly tested my changes and carefully followed the review guidelines
What it does
When opening a visible notebook editor this is now set as the active one. This is important information for jupyter to set some context keys correctly and by that for example show the
restart kernel
option directly instead of first after focusing the widget initially.How to test
You need the jupyter and python extensions installed
restart kernel
andvariables
toolbar entries should now be directly visibleFollow-ups
Review checklist
Reminder for reviewers