Wordcloud for previous topics presented at The Hacker Within

By R. Stuart Geiger, licensed CC-BY 4.0 and the MIT license

Data scraped from THW's website in an embarassingly manual way. I cleaned up some terms and replaced "R" with "RR" because the wordcloud package has trouble with single-letter words.


In [4]:
!pip install wordcloud
%matplotlib inline

In [27]:
from os import path
from wordcloud import WordCloud


# Read the whole text.
text = open('session_titles.tsv').read().lower()

# Generate a word cloud image
wordcloud = WordCloud(width=3000, height=2000, prefer_horizontal=1, stopwords=None).generate(text)

# Display the generated image:
# the matplotlib way:
import matplotlib.pyplot as plt
plt.figure(figsize=(30,15))
plt.imshow(wordcloud)
plt.axis("off")
plt.savefig("cloud2.png")



In [ ]: