gh-36506: Support launching notebook 7
As reported in #36414, running `sage -notebook` fails with jupyter
notebook 7.
This seems to be just a matter of a changed import, which we fix.
### :memo: Checklist
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
Fixes: #36414
URL: https://github.com/sagemath/sage/pull/36506
Reported by: Gonzalo Tornaría
Reviewer(s): Matthias Köppe