
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import anywidget
import traitlets
from pathlib import Path
class CounterWidget(anywidget.AnyWidget):
_esm = Path("counter.js")
_css= Path("counter.css")
value = traitlets.Int(0).tag(sync=True)
counter = CounterWidget()
counter.value = 4501
counter
page = counter
1
Could not load content
1
Could not load content