I don’t know, how Jupyter is launched and if specific env vars are passed it its launch.
However, checking the environment via export could work.
Also, I don’t know, if Jupyter itself uses some arguments to mask specific GPUs.