Show More
@@ -656,7 +656,6 b' class GeoJSON(JSON):' | |||||
656 |
|
656 | |||
657 | Examples |
|
657 | Examples | |
658 | -------- |
|
658 | -------- | |
659 |
|
||||
660 | The following will display an interactive map of Mars with a point of |
|
659 | The following will display an interactive map of Mars with a point of | |
661 | interest on frontend that do support GeoJSON display. |
|
660 | interest on frontend that do support GeoJSON display. | |
662 |
|
661 | |||
@@ -723,7 +722,7 b' class Javascript(TextDisplayObject):' | |||||
723 | running the source code. The full URLs of the libraries should |
|
722 | running the source code. The full URLs of the libraries should | |
724 | be given. A single Javascript library URL can also be given as a |
|
723 | be given. A single Javascript library URL can also be given as a | |
725 | string. |
|
724 | string. | |
726 |
css |
|
725 | css : list or str | |
727 | A sequence of css files to load before running the source code. |
|
726 | A sequence of css files to load before running the source code. | |
728 | The full URLs of the css files should be given. A single css URL |
|
727 | The full URLs of the css files should be given. A single css URL | |
729 | can also be given as a string. |
|
728 | can also be given as a string. | |
@@ -851,18 +850,26 b' class Image(DisplayObject):' | |||||
851 |
|
850 | |||
852 | Examples |
|
851 | Examples | |
853 | -------- |
|
852 | -------- | |
854 |
|
|
853 | embedded image data, works in qtconsole and notebook | |
855 |
|
|
854 | when passed positionally, the first arg can be any of raw image data, | |
856 |
|
|
855 | a URL, or a filename from which to load image data. | |
857 |
|
|
856 | The result is always embedding image data for inline images. | |
858 | Image('http://www.google.fr/images/srpr/logo3w.png') |
|
857 | ||
859 | Image('/path/to/image.jpg') |
|
858 | >>> Image('http://www.google.fr/images/srpr/logo3w.png') | |
860 | Image(b'RAW_PNG_DATA...') |
|
859 | <IPython.core.display.Image object> | |
861 |
|
860 | |||
862 | # Specifying Image(url=...) does not embed the image data, |
|
861 | >>> Image('/path/to/image.jpg') | |
863 | # it only generates `<img>` tag with a link to the source. |
|
862 | <IPython.core.display.Image object> | |
864 | # This will not work in the qtconsole or offline. |
|
863 | ||
865 | Image(url='http://www.google.fr/images/srpr/logo3w.png') |
|
864 | >>> Image(b'RAW_PNG_DATA...') | |
|
865 | <IPython.core.display.Image object> | |||
|
866 | ||||
|
867 | Specifying Image(url=...) does not embed the image data, | |||
|
868 | it only generates ``<img>`` tag with a link to the source. | |||
|
869 | This will not work in the qtconsole or offline. | |||
|
870 | ||||
|
871 | >>> Image(url='http://www.google.fr/images/srpr/logo3w.png') | |||
|
872 | <IPython.core.display.Image object> | |||
866 |
|
873 | |||
867 | """ |
|
874 | """ | |
868 | if isinstance(data, (Path, PurePath)): |
|
875 | if isinstance(data, (Path, PurePath)): | |
@@ -1053,7 +1060,6 b' class Video(DisplayObject):' | |||||
1053 | Local files can be displayed with URLs without embedding the content, via:: |
|
1060 | Local files can be displayed with URLs without embedding the content, via:: | |
1054 |
|
1061 | |||
1055 | Video('./video.mp4') |
|
1062 | Video('./video.mp4') | |
1056 |
|
||||
1057 | mimetype: unicode |
|
1063 | mimetype : unicode | |
1058 | Specify the mimetype for embedded videos. |
|
1064 | Specify the mimetype for embedded videos. | |
1059 | Default will be guessed from file extension, if available. |
|
1065 | Default will be guessed from file extension, if available. | |
@@ -1071,7 +1077,6 b' class Video(DisplayObject):' | |||||
1071 |
|
1077 | |||
1072 | Examples |
|
1078 | Examples | |
1073 | -------- |
|
1079 | -------- | |
1074 |
|
||||
1075 | :: |
|
1080 | :: | |
1076 |
|
1081 | |||
1077 | Video('https://archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_small.mp4') |
|
1082 | Video('https://archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_small.mp4') | |
@@ -1165,7 +1170,7 b' def set_matplotlib_formats(*formats, **kwargs):' | |||||
1165 | ---------- |
|
1170 | ---------- | |
1166 | *formats : strs |
|
1171 | *formats : strs | |
1167 | One or more figure formats to enable: 'png', 'retina', 'jpeg', 'svg', 'pdf'. |
|
1172 | One or more figure formats to enable: 'png', 'retina', 'jpeg', 'svg', 'pdf'. | |
1168 |
**kwargs |
|
1173 | **kwargs | |
1169 | Keyword args will be relayed to ``figure.canvas.print_figure``. |
|
1174 | Keyword args will be relayed to ``figure.canvas.print_figure``. | |
1170 | """ |
|
1175 | """ | |
1171 | from IPython.core.interactiveshell import InteractiveShell |
|
1176 | from IPython.core.interactiveshell import InteractiveShell |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file |
General Comments 0
You need to be logged in to leave comments.
Login now