In that context, nonetheless and however are interchangeable so you could use either. In this context, they both mean 'yet' or 'nevertheless'.
The only difference between them is that however can also be used to mean 'in whatever manner or state', for instance in the sentence: 'Style your hair however you prefer'. Nonetheless is never used in this way.
Student or Learner