def get_execute_show(postfix):
    """Return whether the code should be executed and showed

    Based on the postfix (e.g. '-e') on a code environment (e.g. 'pycod-e'),
    return whether the code should be executed and shown
    :param str postfix: postfix (e.g. '-e') to code environment (e.g. 'pycod-e')
    :return: execute, show
    :rtype: bool, str
    """
    execute = True
    show = 'format'
    if postfix == '-h':     # Show/Hide button (in html)
        execute = False
    elif postfix == 'hid':  # Hide the cell
        execute = True
        show = 'hide'
    elif postfix == '-e':   # Hide also in ipynb
        execute = True
        show = 'hide'
    elif postfix == 'out':  # Output cell
        execute = True      # execute_code_block will render this as code output
        show = 'output'
        return execute, show
    elif postfix == '-t':   # Code as text
        execute = False
        show = 'text'
    return execute, show