A notary is to be present at the oral debate mentioned in cann. 1602, §1 and 1604, §2 so that, if the judge orders it or a party requests it and the judge consents, the notary can immediately report in writing about what was discussed and concluded.
Source: Code of Canon Law (Vatican.va)