forked from K3D-tools/K3D-jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
56 lines (49 loc) · 1.55 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
47
48
49
50
51
52
53
54
55
56
import json
from pathlib import Path
from ._protocol import switch_to_binary_protocol, switch_to_text_protocol
from ._version import __version__
from .colormaps import basic_color_maps
from .colormaps import matplotlib_color_maps
from .colormaps import paraview_color_maps
from .factory import (plot,
nice_colors,
line,
lines,
marching_cubes,
mesh,
points,
stl,
surface,
text,
text2d,
texture,
texture_text,
vector_field,
vectors,
voxels,
voxels_group,
sparse_voxels,
volume,
mip,
label,
vtk_poly_data,
voxel_chunk)
from .objects import create_object, clone_object
from .plot import Plot
from .transfer_function_editor import transfer_function_editor
from .transform import transform
HERE = Path(__file__).parent.resolve()
with (HERE / "labextension" / "package.json").open() as fid:
data = json.load(fid)
def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": data["name"]
}]
def _jupyter_nbextension_paths():
return [{
'section': 'notebook',
'src': 'static',
'dest': 'k3d',
'require': 'k3d/extension'
}]