You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
The IPython-based shell in recent ipython versions does not load the default ipython profile, which results in e.g. the "do you really want to exit" prompt (which is as annoying as vista's UAC prompts ;)) being always enabled.
From the #ipython channel:
<ThiefMaster> is it possible to disable this annoying exit prompt for *all* ipython shells, i.e. also the embedded ones used by programs such as flask-script? for the old ipython disabling it in ipythonrc worked fine, but in the new version c.TerminalInteractiveShell.confirm_exit = False only affects the standalone ipython
<jtaylor> it depends on how the embeded shell is started
<jtaylor> probably flask does not import the default profile
<jtaylor> so you probably have to modify flask
<ThiefMaster> try:
<ThiefMaster> sh = IPython.Shell.IPShellEmbed(banner=self.banner)
<ThiefMaster> except AttributeError:
<ThiefMaster> sh = IPython.frontend.terminal.embed.InteractiveShellEmbed(banner1=self.banner)
<ThiefMaster> and ugh, that sounds like a huge step backwards..
<jtaylor> IPython.embed() uses the default source
<jtaylor> see IPython.embed?? for how its done
<jtaylor> ths issue is for many embedded shells you don't want the default profile as e.g. could execute a bunch of files for convinience in the default shell
<jtaylor> that make no sense when used in some other program
I think it would make sense for flask-script to load the default profile or at least provide a convenient option to modify the ipython config used by it. Or simply disable the exit prompt ;)