/
__init__.py
executable file
·44 lines (32 loc) · 1.1 KB
/
__init__.py
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
44
# -*- coding: utf-8 -*-
"""
Topic Models (e.g. LDA) visualization using D3
=============================================
Functions: General Use
----------------------
:func:`prepare`
transform and prepare a LDA model's data for visualization
:func:`prepared_data_to_html`
convert prepared data to an html string
:func:`show`
launch a web server to view the d3 visualization
:func:`save_html`
save a visualization to a standalone html file
:func:`save_json`
save the visualization JSON data of to a file
Functions: IPython Notebook
---------------------------
:func:`display`
display a figure in an IPython notebook
:func:`enable_notebook`
enable automatic D3 display of prepared model data in the IPython notebook.
:func:`disable_notebook`
disable automatic D3 display of prepared model data in the IPython notebook.
"""
__all__ = ["__version__",
"prepare", "prepared_data_to_html",
"display", "show", "save_html", "save_json",
"enable_notebook", "disable_notebook"]
__version__ = '0.1.0-git'
from ._display import *
from .prepare import prepare