import numpy as np
For other variables in Jupyter Notebook, the scope of variables is not limited to cells. For example, I can write x = 1
and use x
in subsequent cells.
However, with the seed() function, it only applies to the cell in which it is written. What is the reason for this?