See more
…nly requires raw counts, so a CountVectorizer is used. Stop words are removed and the number of terms included in the bag of words matrix is restricted to the top 1000.
After that, the click handler rearranges the buttons by changing the layout parameters accordingly: