Consider having plots as part of the quiz solutions

An example where this would make sense (wrap-up quizz of Module 2 selecting the best model: Last question of the wrap up quiz)

Sometimes it would be nice to have the plot as part as the quizz answer. I think this is more likely to be the case in wrap-up quizzes.

Currently you have to:

  • copy the code from the solution
  • go to the notebook at the top if you are in a wrap-up quizz (or open another notebook somewhere if you are in a normal quizz)
  • pate the code from the solution and execute it
  • go back to the solution of the quizz (towards the bottom) to read the explanation about the plot
  • go back and forth between the notebook and solution while you are trying to understand both

Technically this seems feasible, I am guessing that we could put a png in our gitlab repo.

The problem is that this makes our setup even more hacky and increase the probability of divergence between:

  • the code in the quizz solution that generates the plot
  • the .png in our gitlab repo
  • the quizz content inside FUN
  • the explanation of the plot in the quizz solution

Another in-between alternative would be to make sure that the plots has some annotations highlighting the main take-away from the plots, e.g. in the example from the Module 2 wrap-up quiz, this part correponds to underfitting, this part to overfitting. You would still have to navigate a bit between the notebook and the quiz solution though.

Better solutions more than welcome! Interface-wise, the only idea I have is to be able to put the notebook in a “floating” mode to always see it while you are scrolling down the quiz but I am not sure how easy this is or whether this would work in practice

Tracked in github