Skip to content

Instantly share code, notes, and snippets.

@vabarbosa
Last active April 17, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vabarbosa/839193a479d5723f743f31a834e3423c to your computer and use it in GitHub Desktop.
Save vabarbosa/839193a479d5723f743f31a834e3423c to your computer and use it in GitHub Desktop.
PixieDust Extensibility API - Word Cloud Metadata
@PixiedustDisplay()
class SimpleWordCloudMeta(DisplayHandlerMeta):
@addId
def getMenuInfo(self,entity,dataHandler):
if entity.__class__.__name__ == "DataFrame":
return [
{
"categoryId": "Chart",
"title": "Simple Word Cloud",
"icon": "fa-cloud",
"id": "mySimpleWordCloud"
}
]
else:
return []
def newDisplayHandler(self,options,entity):
return SimpleWordCloudDisplay(options,entity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment