After the jury have retired for deliberation, if they desire to be informed on any point of law arising in the case, they may require the officer having them in charge to conduct them into court. Upon their being brought into court the instruction required shall be given by the court in the presence of or after notice to the parties or their attorneys.