_device
), or better yet encapsulate code in functions and/or give variables meaningful names.with open(...) as file: pass
_file
, __file
, ___file
, etc. on and on in other cells_file
is local to a cell. You can dowith open(...) as _file: pass
_file
right now. Maybe that was a nightmare, idk. Sorry for botheringfor i in range(...)
loops in different cells if I always get i was defined by another cell
? using _i
is very ugly and less readabledf = my_big_dataset()
, X = my_cuda_tensor
. In the end, in the spirit of Python, I think simple is better than magical, explicit better than implicit