This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy path__init__.py
64 lines (53 loc) · 1.97 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
57
58
59
60
61
62
63
64
from __future__ import print_function as _
import os as _os
import sys as _sys
import dash as _dash
from .version import __version__
if not hasattr(_dash, 'development'):
print("Dash was not successfully imported. Make sure you don't have a file "
"named \n'dash.py' in your current directory.", file=_sys.stderr)
_sys.exit(1)
_current_path = _os.path.dirname(_os.path.abspath(__file__))
_components = _dash.development.component_loader.load_components(
_os.path.join(_current_path, 'metadata.json'),
'dash_core_components'
)
_this_module = _sys.modules[__name__]
_js_dist = [
{
'external_url': 'https://cdn.plot.ly/plotly-1.38.0.min.js',
'relative_package_path': 'plotly-1.38.0.min.js',
'namespace': 'dash_core_components'
},
{
'relative_package_path': 'bundle.js',
'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/bundle.js'
).format(__version__),
'namespace': 'dash_core_components'
}
]
_css_dist = [
{
'relative_package_path': [
],
'external_url': [
'https://unpkg.com/[email protected]/dist/react-select.min.css',
'https://unpkg.com/[email protected]/styles.css',
'https://unpkg.com/[email protected]/styles.css',
'https://unpkg.com/[email protected]/assets/index.css',
'https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]'.format(__version__)
],
'namespace': 'dash_core_components'
}
]
for component in _components:
setattr(_this_module, component.__name__, component)
setattr(component, '_js_dist', _js_dist)
setattr(component, '_css_dist', _css_dist)