The application may be made to the court during the term thereof, or to the judge in vacation, and must be upon three days’ notice to the prosecuting attorney.