How to get the values of losses in a list?

When training the model using or learn.fit_one_cycle, is there anyway to get the training loss and validation loss values after each epoch? I want to plot the losses but I don’t want to use the learn.recorder.plot_losses for two reasons: It only shows the loss versus batches instead of epochs, and the plot size is small. I want to get the losses in a list so that I can plot them separately. Is there anyway to do this?
Thanks in advance.