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