ipython icon indicating copy to clipboard operation
ipython copied to clipboard

Specifying startup() code when invoking embedded IPython shells

Open amelio-vazquez-reina opened this issue 13 years ago • 2 comments

Is there any way to have IPython embedded shells run a pre-specified function as soon as they load?

amelio-vazquez-reina avatar Mar 27 '13 22:03 amelio-vazquez-reina

Not that I know of, but you could subclass it.

minrk avatar Mar 27 '13 22:03 minrk

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.

MrMino avatar Jun 20 '22 08:06 MrMino