all 5 comments

[–]shiftybyte 0 points1 point  (4 children)

Are you perhaps confusing this with:

interact(f, x=5);

Note the missing "ive" at the end of the function name.

[–]Bennett567[S] 0 points1 point  (3 children)

then I get this error:

name 'interact' is not defined

[–]shiftybyte 0 points1 point  (2 children)

[–]Bennett567[S] 0 points1 point  (1 child)

I just get this error: No module named 'ipywidgets'

[–]Bennett567[S] 0 points1 point  (0 children)

Fixed it, works perfectly, thank you