W2_A1_Ex-2_Basic sigmoid function

When I try to run I get “basic_sigmoid not defined”. This makes no sense. The definition is right there!

Hi @Roy_Marsten ,

If your notebook has been inactive, then, you need to rerun the code from start. Otherwise, the execution environment becomes out of sync, and it has no reference of the function. Python is an interactive interpreter, it does not compile the code before execution, unlike languages like C.

The problem was that cells are executed independently in Jupyter notebooks. I am fine now.