MCPcopy Index your code
hub / github.com/plotly/plotly.py / convert_to_base64

Function convert_to_base64

_plotly_utils/utils.py:103–114  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

101
102
103def convert_to_base64(obj):
104 if isinstance(obj, dict):
105 for key, value in obj.items():
106 if is_skipped_key(key):
107 continue
108 elif is_homogeneous_array(value):
109 obj[key] = to_typed_array_spec(value)
110 else:
111 convert_to_base64(value)
112 elif isinstance(obj, list) or isinstance(obj, tuple):
113 for value in obj:
114 convert_to_base64(value)
115
116
117def cumsum(x):

Callers 1

to_dictMethod · 0.90

Calls 4

is_homogeneous_arrayFunction · 0.90
is_skipped_keyFunction · 0.85
to_typed_array_specFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected