File: __init__.py

package info (click to toggle)
python-mpld3 0.3git%2B20140910dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,808 kB
  • ctags: 1,095
  • sloc: python: 3,595; makefile: 187
file content (43 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
Interactive D3 rendering of matplotlib images
=============================================

Functions: General Use
----------------------
:func:`fig_to_html`
    convert a figure to an html string

:func:`fig_to_dict`
    convert a figure to a dictionary representation

:func:`show`
    launch a web server to view an d3/html figure representation

:func:`save_html`
    save a figure to an html file

:func:`save_json`
    save a JSON representation of a figure to file


Functions: IPython Notebook
---------------------------
:func:`display`
    display a figure in an IPython notebook

:func:`enable_notebook`
    enable automatic D3 display of figures in the IPython notebook.

:func:`disable_notebook`
    disable automatic D3 display of figures in the IPython
"""

__all__ = ["__version__",
           "fig_to_html", "fig_to_dict", "fig_to_d3", "display_d3",
           "display", "show_d3", "show", "save_html", "save_json",
           "enable_notebook", "disable_notebook", "plugins", "urls"]

from .__about__ import __version__
from . import plugins
from . import urls
from ._display import *