-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wordcloud worker #164
Wordcloud worker #164
Conversation
There is a problem when installing the wordcloud module if Cython was not previously installed. If that happens, installing Cython before trying to install all deps (with `pip install -r`) should solve this. I forked the original wordcloud module (https://github.com/amueller/word_cloud) because it needed to be slightly adapted (so it wouldn't show and save the image, for example).
Currently I have some problems to run this:
|
6772a4e updates the README with this information (I didn't know about the libfreetype headers). I couldn't find a well documented way of finding the font file in python. I even changed the default font in my fork (in the original project they use DroidSansMono) to use a more popular font, but that's not enough. I'll try to find a way of finding this font files that do not involve us having to write (and maintain) a font-finding routine. |
One way of finding system fonts is using matplotlib's font manager:
As matplotlib is not a dependency, we may "cherry pick" font finding function from font_manager.py. |
Looks like a good idea! On Tue, Feb 11, 2014 at 6:15 AM, Álvaro Justen [email protected]:
Flávio Codeço Coelho+55(21) 3799-5551 |
I saw this. I didn't want to use it because matplotlib was not a dependency (and I didn't want to include it as such only for this) but I'll look into getting the code directly from font_manager.py. Just one question: is it OK if I ignore all the code for other platforms (since pypln is only supposed to run on GNU/linux anyway)? |
I think so, we don't have the resources to maintain it for more than one On Tue, Feb 11, 2014 at 10:33 AM, Flávio Amieiro
Flávio Codeço Coelho+55(21) 3799-5551 |
Actually I think we should only provide official support for Debian/Ubuntu distributions. |
I've tried to bring the code from matplotlib's font manager and it does seems doable, but it will involve bringing in a lot of code (from more than just the Since we're OK (at least me and @turicas are) with supporting debian/ubuntu, I'll document that you need the |
This adds the new wordcloud worker. The worker generates a wordcloud and saves PNG encoded in base64 to the storage.
Please also merge NAMD/pypln-deploy#17 so the deploy process doesn't break this in production.