bundles / IPython 9.3.0 / IPython / core / display / JSON / __init__
function
IPython.core.display:JSON.__init__
source: /IPython/core/display.py :591
Signature
def __init__ ( self , data = None , url = None , filename = None , expanded = False , metadata = None , root = root , ** kwargs ) Summary
Create a JSON display object given raw data.
Parameters
data: dict or listJSON data to display. Not an already-serialized JSON string. Scalar types (None, number, string) are not allowed, only dict or list containers.
url: unicodeA URL to download the data from.
filename: unicodePath to a local file to load the data from.
expanded: booleanMetadata to control whether a JSON display component is expanded.
metadata: dictSpecify extra metadata to attach to the json display object.
root: strThe name of the root element of the JSON tree
Aliases
-
IPython.display.JSON.__init__