bundles / IPython latest / 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 bytesThe Javascript source code or a URL to download it from.
url: unicodeA URL to download the data from.
filename: unicodePath to a local file to load the data from.
lib: list or strA 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 strA 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__