| 205 | pass |
| 206 | |
| 207 | class TerminalInteractiveShell(InteractiveShell): |
| 208 | mime_renderers = Dict().tag(config=True) |
| 209 | |
| 210 | min_elide = Integer( |
| 211 | 30, help="minimum characters for filling with ellipsis in file completions" |
| 212 | ).tag(config=True) |
| 213 | space_for_menu = Integer( |
| 214 | 6, |
| 215 | help="Number of line at the bottom of the screen " |
| 216 | "to reserve for the tab completion menu, " |
| 217 | "search history, ...etc, the height of " |
| 218 | "these menus will at most this value. " |
| 219 | "Increase it is you prefer long and skinny " |
| 220 | "menus, decrease for short and wide.", |
| 221 | ).tag(config=True) |
| 222 | |
| 223 | pt_app: UnionType[PromptSession, None] = None |
| 224 | auto_suggest: UnionType[ |
| 225 | AutoSuggestFromHistory, |
| 226 | NavigableAutoSuggestFromHistory, |
| 227 | None, |
| 228 | ] = None |
| 229 | debugger_history = None |
| 230 | |
| 231 | debugger_history_file = Unicode( |
| 232 | "~/.pdbhistory", help="File in which to store and read history" |
| 233 | ).tag(config=True) |
| 234 | |
| 235 | simple_prompt = Bool(_use_simple_prompt, |
| 236 | help="""Use `raw_input` for the REPL, without completion and prompt colors. |
| 237 | |
| 238 | Useful when controlling IPython as a subprocess, and piping |
| 239 | STDIN/OUT/ERR. Known usage are: IPython's own testing machinery, |
| 240 | and emacs' inferior-python subprocess (assuming you have set |
| 241 | `python-shell-interpreter` to "ipython") available through the |
| 242 | built-in `M-x run-python` and third party packages such as elpy. |
| 243 | |
| 244 | This mode default to `True` if the `IPY_TEST_SIMPLE_PROMPT` |
| 245 | environment variable is set, or the current terminal is not a tty. |
| 246 | Thus the Default value reported in --help-all, or config will often |
| 247 | be incorrectly reported. |
| 248 | """, |
| 249 | ).tag(config=True) |
| 250 | |
| 251 | @property |
| 252 | def debugger_cls(self): |
| 253 | return Pdb if self.simple_prompt else TerminalPdb |
| 254 | |
| 255 | confirm_exit = Bool(True, |
| 256 | help=""" |
| 257 | Set to confirm when you try to exit IPython with an EOF (Control-D |
| 258 | in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit', |
| 259 | you can force a direct exit without any confirmation.""", |
| 260 | ).tag(config=True) |
| 261 | |
| 262 | editing_mode = Unicode('emacs', |
| 263 | help="Shortcut style to use at the prompt. 'vi' or 'emacs'.", |
| 264 | ).tag(config=True) |
searching dependent graphs…