Jupyter lab with --enable-shared

We have used --enable-shared on some of our Python installs.

The python3 -m ipykernel install --name v3.10.1 --display-name v3.10.1
has worked fine.

However, whenever we try to start this kernel, Jupyter gives the following message:
/local/Python/3.10.1/bin/python3: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory

So, we obviously need to pass the LD_LIBRARY_PATH to Jupyter for each of these Python versions. But unsure how to do that.

Or some alternative method?