Giter Site home page Giter Site logo

bokeh_wordcloud2's Introduction

bokeh_wordcloud2

a (mostly complete) bokeh implementation of wordcloud2-js

This extension attempts to make wordcloud available inside the bokeh ecosystem

This was made as part of a learning project to make bokeh widgets, but it was too good not to share.

Installation

pip install git+https://github.com/joranbeasley/bokeh_wordcloud2.git

or you can clone this repo and run setup.py install or pip install <git_checkout_directory>

Documentation

and try the interactive jupyer notebook Binder

and check out the examples

bokeh_wordcloud2's People

Contributors

joranbeasley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jmlingeman

bokeh_wordcloud2's Issues

missing documentation

missing documentation for most of the options outside the 4 or 5 covered in examples

missing options

missing options

  • ✓ fontFamily - DONE
  • origin - not yet implemented
  • drawMask - not yet implemented
  • maskColor - not yet implemented
  • maskGapWidth - not yet implemented
  • wait - not yet implemented
  • abortThreshold - not yet implemented
  • abort - not yet implemented
  • shuffle - not yet implemented
  • ellipticity - not yet implemented

  • drawOutOfBound - always False for now ... should allow user to override?
  • ✓ weightFactor - DONE
  • ✓ gridSize - DONE

  • ✓ backgroundColor - this is set via background , considered DONE

  • clearCanvas - I am inclined not to implement this .... who knows

Installation problem

Thank you for bringing WordCloud to Bokeh!
I have trouble running the example. I tried the three installation options but all of them failed, generating the following TypeScript compilation errors:

Compilation failed:

venv/git/lib/python3.7/site-packages/bokeh/server/static/js/types/models/widgets/date_picker.d.ts:1:23 - error TS2307: C
annot find module 'flatpickr'.

1 import flatpickr from "flatpickr";

venv/git/lib/python3.7/site-packages/bokeh/server/static/js/types/models/widgets/multichoice.d.ts:1:21 - error TS2307: C
annot find module 'choices.js'.

1 import Choices from "choices.js";

A few comments on the installation instruction

  1. I think wheel and bokeh are required.
  2. The git clone command complains with pip and fatal: unable to find remote helper for 'git+https'. I think it should be git clone https://github.com/joranbeasley/bokeh_wordcloud2.git.

Here is a GIST that I made to test three types of installation and collect error logs using fresh virtual environments.
https://gist.github.com/wakita/8b007afb4b422c816ed96bb6acef96ce

Many thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.