I can solve the problem without any problem when the code is in a
filename.jlfile and I run it usinginclude("filename.jl")method
I’m not sure then. It’s likely that Jupyter is messing with your load path. This seems more like a Jupyter question than one specific to Ipopt.