Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/plotly/plotly.py
/ build_json_opts
Function
build_json_opts
tests/test_io/test_to_from_plotly_json.py:21–27 ·
view source on GitHub ↗
(pretty=False)
Source
from the content-addressed store, hash-verified
19
20
# Testing helper
21
def
build_json_opts(pretty=False):
22
opts = {
"sort_keys"
: True}
23
if
pretty:
24
opts[
"indent"
] = 2
25
else
:
26
opts[
"separators"
] = (
","
,
":"
)
27
return
opts
28
29
30
def
to_json_test(value, pretty=False):
Callers
1
to_json_test
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected