As summary says, the last version of python for which ipykernel is built determines what goes into /usr/share/jupyter/kernels/python3/kernel.json. A better behaviour would probably be to install python3.x kernels, one for each version of python for which ipykernel is being built, along with a generic python3 kernel that respects eselect python configuration.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=983589995012215b627aa48f0025a1d8a86dad9a commit 983589995012215b627aa48f0025a1d8a86dad9a Author: Guilherme Amadio <amadio@gentoo.org> AuthorDate: 2021-12-14 12:36:55 +0000 Commit: Guilherme Amadio <amadio@gentoo.org> CommitDate: 2021-12-14 14:58:23 +0000 dev-python/ipykernel: fix bug #784764 Closes: https://bugs.gentoo.org/784764 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org> .../{ipykernel-6.4.2.ebuild => ipykernel-6.4.2-r1.ebuild} | 7 +++++++ .../{ipykernel-6.5.0.ebuild => ipykernel-6.5.0-r1.ebuild} | 7 +++++++ 2 files changed, 14 insertions(+)