Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to_plotly_json
1 parent 3f1fe9e commit 97dc235Copy full SHA for 97dc235
plotly/utils.py
@@ -172,12 +172,18 @@ def sageJSONEncoder(self, obj):
172
raise NotEncodable
173
174
def builtinJSONEncoder(self, obj):
175
+ '''
176
+ Provide an API for folks to write their own
177
+ JSON encoders for their objects that they wanna
178
+ send to Plotly: this is an object's `to_plotly_json` method
179
+
180
+ Used for grid_objs.Column objects.
181
182
try:
183
return obj.to_plotly_json()
184
except AttributeError:
185
186
-
187
def default(self, obj):
188
encoders = (self.builtinJSONEncoder,
189
self.datetimeJSONEncoder,
0 commit comments