Last active
April 17, 2017 20:48
-
-
Save vabarbosa/839193a479d5723f743f31a834e3423c to your computer and use it in GitHub Desktop.
PixieDust Extensibility API - Word Cloud Metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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