You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# events are always sent to a browser or tab, but the documentation isn't always clear which
49
-
# so dumping all: `browser.subscribe("*", dump_event)` can be useful (but verbose) for debugging
56
+
# events are always sent to a browser or tab,
57
+
# but the documentation isn't always clear which.
58
+
# Dumping all: `browser.subscribe("*", dump_event)` (on tab too)
59
+
# can be useful (but verbose) for debugging.
50
60
```
51
-
Install this repository (`pip install .`) and `numpy`.
52
61
53
62
## Other Options
54
63
55
64
### Non-asyncio
56
65
57
66
You can use this library without `asyncio`,
58
67
```
59
-
my_browser = devtools.Browser()
68
+
my_browser = devtools.Browser() # blocking until open
60
69
```
61
70
But you are responsible for calling all `browser.pipe.read_jsons(blocking=True|False)` and organizing the results. `browser.run_output_thread()` will start a second thread that constantly prints all responses from the browser, it can't be used with `asyncio`- it won't play nice with any other read.
62
71
63
72
### Low-level use
64
73
65
74
We provide a `Browser` and `Tab` interface, but there is also a lower-level `Target` and `Session` interface that one can use if needed.
66
-
67
-
--------------------------
68
-
--------------------------
69
-
--------------------------
70
-
--------------------------
71
-
# ⚠️ Help Needed! ⚠️
72
-
73
-
### First Test
74
-
75
-
Please run: `python app/test1.py` and send me the output along with information about your browser, operating system, and python. Internal plotly slack is fine #kaleido, or a github issue is also fine.
76
-
77
-
#### Optional Tests
78
-
79
-
Run: `app/app.py` and send me the output.
80
-
81
-
If everything works, feel free to give `kaleido/app.py` a shot.
0 commit comments