support `%gui qt5` in kernels

same as terminal IPython in #6496
didn't need anything beyond register
support `%matplotlib qt5`

just needed the key, since `%gui qt5` already works