##// END OF EJS Templates
Docstring autoformatting....
Matthias Bussonnier -
Show More
@@ -567,7 +567,7 b' class JSON(DisplayObject):'
567 567 Path to a local file to load the data from.
568 568 expanded : boolean
569 569 Metadata to control whether a JSON display component is expanded.
570 metadata: dict
570 metadata : dict
571 571 Specify extra metadata to attach to the json display object.
572 572 root : str
573 573 The name of the root element of the JSON tree
@@ -651,12 +651,11 b' class GeoJSON(JSON):'
651 651 A URL to download the data from.
652 652 filename : unicode
653 653 Path to a local file to load the data from.
654 metadata: dict
654 metadata : dict
655 655 Specify extra metadata to attach to the json display object.
656 656
657 657 Examples
658 658 --------
659
660 659 The following will display an interactive map of Mars with a point of
661 660 interest on frontend that do support GeoJSON display.
662 661
@@ -723,7 +722,7 b' class Javascript(TextDisplayObject):'
723 722 running the source code. The full URLs of the libraries should
724 723 be given. A single Javascript library URL can also be given as a
725 724 string.
726 css: : list or str
725 css : list or str
727 726 A sequence of css files to load before running the source code.
728 727 The full URLs of the css files should be given. A single css URL
729 728 can also be given as a string.
@@ -844,14 +843,13 b' class Image(DisplayObject):'
844 843 from image data.
845 844 For non-embedded images, you can just set the desired display width
846 845 and height directly.
847 unconfined: bool
846 unconfined : bool
848 847 Set unconfined=True to disable max-width confinement of the image.
849 metadata: dict
848 metadata : dict
850 849 Specify extra metadata to attach to the image.
851 850
852 851 Examples
853 852 --------
854
855 853 embedded image data, works in qtconsole and notebook
856 854 when passed positionally, the first arg can be any of raw image data,
857 855 a URL, or a filename from which to load image data.
@@ -871,6 +869,7 b' class Image(DisplayObject):'
871 869 This will not work in the qtconsole or offline.
872 870
873 871 >>> Image(url='http://www.google.fr/images/srpr/logo3w.png')
872 <IPython.core.display.Image object>
874 873
875 874 """
876 875 if isinstance(data, (Path, PurePath)):
@@ -1061,8 +1060,7 b' class Video(DisplayObject):'
1061 1060 Local files can be displayed with URLs without embedding the content, via::
1062 1061
1063 1062 Video('./video.mp4')
1064
1065 mimetype: unicode
1063 mimetype : unicode
1066 1064 Specify the mimetype for embedded videos.
1067 1065 Default will be guessed from file extension, if available.
1068 1066 width : int
@@ -1079,7 +1077,6 b' class Video(DisplayObject):'
1079 1077
1080 1078 Examples
1081 1079 --------
1082
1083 1080 ::
1084 1081
1085 1082 Video('https://archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_small.mp4')
@@ -1173,7 +1170,7 b' def set_matplotlib_formats(*formats, **kwargs):'
1173 1170 ----------
1174 1171 *formats : strs
1175 1172 One or more figure formats to enable: 'png', 'retina', 'jpeg', 'svg', 'pdf'.
1176 **kwargs :
1173 **kwargs
1177 1174 Keyword args will be relayed to ``figure.canvas.print_figure``.
1178 1175 """
1179 1176 from IPython.core.interactiveshell import InteractiveShell
General Comments 0
You need to be logged in to leave comments. Login now