Skip to content

Commit 8060c61

Browse files
committed
separate demo folder
1 parent 762b084 commit 8060c61

File tree

19 files changed

+50
-36
lines changed

19 files changed

+50
-36
lines changed

chartlets.py/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ For details refer to the [documentation](https://bcdev.github.io/chartlets/).
1414

1515
## Run demo server
1616

17+
Create environment
18+
1719
``` bash
1820
mamba env create
1921
conda activate chartlets
20-
python -m chartlets.demo.server
22+
pip install -ve .
23+
```
24+
25+
Run server
26+
27+
``` bash
28+
cd demo
29+
python -m demo.server.main
2130
```

chartlets.py/chartlets/demo/contribs/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

chartlets.py/chartlets/demo/utils/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

chartlets.py/chartlets/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "0.0.30"
1+
version = "0.1.0.dev0"
File renamed without changes.

chartlets.py/my_extension/my_panel_1.py renamed to chartlets.py/demo/my_extension/my_panel_1.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from typing import Any
2-
32
import altair as alt
4-
53
from chartlets import Component, Input, Output, State
64
from chartlets.components import VegaChart, Box, Select
7-
from chartlets.demo.contribs import Panel
8-
from chartlets.demo.context import Context
5+
6+
from demo.server.contribs import Panel
7+
from demo.server.context import Context
98

109

1110
panel = Panel(__name__, title="Panel A")

chartlets.py/my_extension/my_panel_2.py renamed to chartlets.py/demo/my_extension/my_panel_2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import altair as alt
22
import pandas as pd
3-
43
from chartlets import Component, Input, State, Output
54
from chartlets.components import VegaChart, Box, Select
6-
from chartlets.demo.contribs import Panel
7-
from chartlets.demo.context import Context
5+
6+
from demo.server.contribs import Panel
7+
from demo.server.context import Context
88

99

1010
panel = Panel(__name__, title="Panel B")

chartlets.py/my_extension/my_panel_3.py renamed to chartlets.py/demo/my_extension/my_panel_3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from chartlets import Component, Input, State, Output
22
from chartlets.components import Box, Select, Checkbox, Typography
3-
from chartlets.demo.contribs import Panel
4-
from chartlets.demo.context import Context
3+
4+
from demo.server.contribs import Panel
5+
from demo.server.context import Context
56

67

78
panel = Panel(__name__, title="Panel C")

0 commit comments

Comments
 (0)