Skip to content

Commit c1f5222

Browse files
authored
Add Usage example to README
1 parent ac89ee8 commit c1f5222

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ If you use jupyterlab:
1515
pip install sidecar
1616
jupyter labextension install @jupyter-widgets/jupyterlab-sidecar
1717
```
18+
19+
## Usage
20+
21+
```python
22+
from sidecar import Sidecar
23+
from ipywidgets import IntSlider
24+
25+
sc = Sidecar(title='Sidecar Output')
26+
sl = IntSlider(description='Some slider')
27+
with sc:
28+
display(sl)
29+
```

0 commit comments

Comments
 (0)