run ipython command from script code example
Example: python launch ipython from script
from IPython import embed
a = "I will be accessible in IPython shell!"
embed()
from IPython import embed
a = "I will be accessible in IPython shell!"
embed()