Why when I try to do the same as in the script in my VSC I get a message of non convergence?

When I use the model.fit of logistic regression in my VSC I get the warning: ConvergenceWarning: lbfgs failed to converge (status=1):
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.

In the notebook I do not get any warnings. Any idea why? Would appreciate any help.

My wild guess is that locally you forgot to scale your numerical features, while on the FUN notebook you are doing so.

Another possibility is that in either case you are not using the default value for the max_iter or tol parameters.