def exponent_nice_str(exponent_str):
    """Convert exponent string like ``1e-04`` to ``$10^{-4}$``"""
    split_str = exponent_str.split("e")
    if split_str[0] == "1":
        split_str[0] = ""
    split_str[1] = "{" + f"{int(split_str[1])}" + "}"
    nice_exponent_str = rf"{split_str[0]} 10^{split_str[1]}"
    return nice_exponent_str