##// END OF EJS Templates
Make ast_node_interactivity trait an Enum instead of Unicode
Mike Hansen -
Show More
@@ -368,10 +368,11 b' class InteractiveShell(SingletonConfigurable):'
368 '"\C-u": unix-line-discard',
368 '"\C-u": unix-line-discard',
369 ], allow_none=False, config=True)
369 ], allow_none=False, config=True)
370
370
371 ast_node_interactivity = Unicode('last_expr', config=True, help="""
371 ast_node_interactivity = Enum(['all', 'last', 'last_expr', 'none'],
372 default_value='last_expr', config=True,
373 help="""
372 'all', 'last', 'last_expr' or 'none'," specifying which nodes should be
374 'all', 'last', 'last_expr' or 'none'," specifying which nodes should be
373 run interactively (displaying output from expressions).
375 run interactively (displaying output from expressions).""")
374 """)
375
376
376 # TODO: this part of prompt management should be moved to the frontends.
377 # TODO: this part of prompt management should be moved to the frontends.
377 # Use custom TraitTypes that convert '0'->'' and '\\n'->'\n'
378 # Use custom TraitTypes that convert '0'->'' and '\\n'->'\n'
General Comments 0
You need to be logged in to leave comments. Login now