You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / core / display / Javascript / __init__

function

IPython.core.display:Javascript.__init__

source: /IPython/core/display.py :737

Signature

def   __init__ ( self data = None url = None filename = None lib = None css = None )

Summary

Create a Javascript display object given raw data.

Extended Summary

When this object is returned by an expression or passed to the display function, it will result in the data being displayed in the frontend. If the data is a URL, the data will first be downloaded and then displayed.

In the Notebook, the containing element will be available as element, and jQuery will be available. Content appended to element will be visible in the output area.

Parameters

data : unicode, str or bytes

The Javascript source code or a URL to download it from.

url : unicode

A URL to download the data from.

filename : unicode

Path to a local file to load the data from.

lib : list or str

A sequence of Javascript library URLs to load asynchronously before running the source code. The full URLs of the libraries should be given. A single Javascript library URL can also be given as a string.

css : list or str

A sequence of css files to load before running the source code. The full URLs of the css files should be given. A single css URL can also be given as a string.

Aliases

  • IPython.display.Javascript.__init__