I tried to create a shell with jupyter in it and got this assertion error
E AssertionError: assert '/nix/store/c....9/bin/python' == '/nix/store/c...in/python3.10'
E Skipping 58 identical leading characters in diff, use -v to show
E - /bin/python3.10
E ? ----
E + /bin/python
Looks like jupyter asserts the interpreter used.
Nix strips python3.10 to python at some point but it is still the same interpreter and can be ignored.
You could start python with -O to skip the assertion. To
You should be able to pass the -O flag to the start script to ignore it. The root of the problem needs to be fixed in the package, likely by just removing the assert.