DEV: Use exec_lines
and not profile dir for spin ipython
#24256
Merged
exec_lines
and not profile dir for spin ipython
#24256