Show More
@@ -78,12 +78,12 b'' | |||||
78 | "source": [ |
|
78 | "source": [ | |
79 | "The main idea of the first approach is that you have to implement special display methods, one for each representation you want to use. The names of the special methods are self explanatory:\n", |
|
79 | "The main idea of the first approach is that you have to implement special display methods, one for each representation you want to use. The names of the special methods are self explanatory:\n", | |
80 | "\n", |
|
80 | "\n", | |
81 | "* _repr_html_\n", |
|
81 | "* `_repr_html_`\n", | |
82 | "* _repr_json_\n", |
|
82 | "* `_repr_json_`\n", | |
83 | "* _repr_jpeg_\n", |
|
83 | "* `_repr_jpeg_`\n", | |
84 | "* _repr_png_\n", |
|
84 | "* `_repr_png_`\n", | |
85 | "* _repr_svg_\n", |
|
85 | "* `_repr_svg_`\n", | |
86 | "* _repr_latex_\n", |
|
86 | "* `_repr_latex_`\n", | |
87 | "\n", |
|
87 | "\n", | |
88 | "As an illustration, we build a class that holds data generated by sampling a Gaussian distribution with given mean and variance. Each frontend can then decide which representation it will display be default. Further, we show how to display a particular representation." |
|
88 | "As an illustration, we build a class that holds data generated by sampling a Gaussian distribution with given mean and variance. Each frontend can then decide which representation it will display be default. Further, we show how to display a particular representation." | |
89 | ] |
|
89 | ] |
General Comments 0
You need to be logged in to leave comments.
Login now