-
-
Notifications
You must be signed in to change notification settings - Fork 477
/
__init__.py
66 lines (56 loc) · 1.58 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
65
66
"""
Layout
======
Layouts can layout your python objects and panel components.
Most layouts behave as the Python containers you already know. For example
`Column` and `Row` behaves as lists. I.e. they have a list-like API with
methods to `append`, `extend`, `clear`, `insert`, `pop`, `remove` and
`__setitem__`, which make it possible to interactively update and modify them.
Check out the Panel gallery of layouts
https://panel.holoviz.org/reference/index.html#layouts for inspiration.
How to use layouts in 2 simple steps
------------------------------------
1. Define your Python objects
>>> some_python_object = ...
>>> some_widget = pn.widgets...
>>> some_pane = pn.pane...
2. Define your layouts
>>> pn.Column(some_python_object, some_widget, some_pane)
For more detail see the Getting Started Guide
https://panel.holoviz.org/getting_started/index.html
"""
from .accordion import Accordion # noqa
from .base import ( # noqa
Column, ListLike, ListPanel, Panel, Row, WidgetBox,
)
from .card import Card # noqa
from .flex import FlexBox # noqa
from .float import FloatPanel # noqa
from .grid import GridBox, GridSpec # noqa
from .gridstack import GridStack # noqa
from .spacer import ( # noqa
Divider, HSpacer, Spacer, VSpacer,
)
from .swipe import Swipe # noqa
from .tabs import Tabs # noqa
__all__ = (
"Accordion",
"Card",
"Column",
"Divider",
"FloatPanel",
"FlexBox",
"GridBox",
"GridSpec",
"GridStack",
"HSpacer",
"ListLike",
"ListPanel",
"Panel",
"Row",
"Spacer",
"Swipe",
"Tabs",
"VSpacer",
"WidgetBox"
)