-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
46 lines (33 loc) · 1.15 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
45
46
# -*- 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 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", "js_PCoA",
"PreparedData", "prepared_data_to_html",
"display", "show", "save_html", "save_json",
"enable_notebook", "disable_notebook"]
__version__ = 'git_1.0.0'
from _display import *
from _prepare import prepare, js_PCoA, PreparedData