When a contempt is committed in the immediate view and presence of the court, or judge at chambers, it may be punished summarily; for which an order must be made, reciting the facts as occurring in such immediate view and presence, adjudging that the person proceeded against is thereby guilty of a contempt, and that he be punished as therein prescribed. When the contempt is not committed in the immediate view and presence of the court, or judge at chambers, an affidavit shall be presented to the court or judge of the facts constituting the contempt, or a statement of the facts by the referees or arbitrators, or other judicial officer.
Idaho Code § 7-603