-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmonkey_marimo.py
More file actions
56 lines (36 loc) · 807 Bytes
/
Copy pathmonkey_marimo.py
File metadata and controls
56 lines (36 loc) · 807 Bytes
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
import marimo
__generated_with = "0.23.6"
app = marimo.App()
@app.cell
def _():
import marimo as mo
from tldraw import MonkeyWidget
return MonkeyWidget, mo
@app.cell
def _(MonkeyWidget, mo):
m = mo.ui.anywidget(MonkeyWidget(width=900, height=440))
m
return (m,)
@app.cell
def _(m):
m.x, m.y
return
@app.cell
def _(mo):
import anywidget
p1 = "/Users/jan-hendrik/projects/jupyter-tldraw/src/tldraw/static/monkey.js"
p2 = "/Users/jan-hendrik/projects/jupyter-tldraw/src/tldraw/static/monkey.css"
class Widget(anywidget.AnyWidget):
_esm = str(mo.watch.file(p1))
_css = str(mo.watch.file(p2))
w = Widget()
w
return
@app.cell
def _():
return
@app.cell
def _():
return
if __name__ == "__main__":
app.run()