title: torch.cuda.is_available() is False only in Jupyter Lab/Notebook
body: <p>I tried to install CUDA on my computer. After doing so I checked in my Anaconda Prompt and is appeared to work out fine.</p>
  <p><a href="https://i.stack.imgur.com/NPoaL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NPoaL.png" alt="enter image description here" /></a></p>
  <p>However, when I started Jupyter Lab from the same environment, <code>torch.cuda.is_available()</code> returns False. I managed to find and follow <a href="https://discuss.pytorch.org/t/torch-cuda-is-available-returns-false-only-for-jupyter-notebook/78281" rel="nofollow noreferrer">this solution</a>, but the problem still persisted for me.</p>
  <p><a href="https://i.stack.imgur.com/xPcHf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xPcHf.png" alt="enter image description here" /></a></p>
  <p>Does anybody have any idea why? Thank you so much!</p>