ExperimentSession.post_message()#

ExperimentSession.post_message(msg: str, title: str = '', level: str = 'info')[source]#

Post a message for one-time display after the next move.

Both the message and its title can contain github flavored markdown and emoji shortcodes.

The message will always be displayed only once. If the current page cannot be left, e.g. due to invalid input, it will be displayed on the current page. Otherwise, it will always be displayed on the next displayed page.

Parameters
  • msg – Message main text.

  • title – Message title, will be displayed as a bold heading.

  • level – Message level, controls the display style. Can be ‘info’ (default), ‘warning’, ‘danger’, ‘success’, ‘primary’, ‘secondary’, ‘dark’, or ‘light’.