ipython
ipython copied to clipboard
Specifying startup() code when invoking embedded IPython shells
Is there any way to have IPython embedded shells run a pre-specified function as soon as they load?
Not that I know of, but you could subclass it.
Still no such thing in current implementation of IPython.embed. Might be possible to hack it in with config=, but a separate argument for this could be useful.