Hide solution but check answer in learnr + gradethis

Is it possible to hide the solution but still give hints and check the answer using the grade_code() function?

While I don't plan on actually grading their responses and I am not going to worry about cheating, I also don't want to make it too easy to find the solution. I want to give hints and have students help each other or get help from me or a TA rather than just click on the solution button. I do want them to get feedback on whether their code is correct or not though.