I think warnings should be there regardless of the environment and they can be turned off by the user if need be, as you suggested originally, so all is good.
I was looking for a way to make pytorch find the source code that resides in the nb, which I succeeded in a hackish way (my previous comment).
Thank you, @smth