- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
\textnormal{...} displayed in red as such
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
I was about to send to the person:
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdArVmapRinF4lsSfTCyFY6OfQHzpS/apayE/KXQRocCmIw
Bqocdu4oXRV7G2UCEqC5cppdI2n…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
In JupyterLab:
from playwright.async_api import async_playwright
p = await async_playwright().start()
browser = await p.firefox.launch(headless=False…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
Warning:
<tmp 1>+5:1: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
DuckDuckGo and Google search asyncio.run, Playwright interactively, Playwright async interactively and Python Playwright async interactive mode.
https://playwright.dev/docs/test-ui-mode…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
The issue with a function is that interrupting it does not make code interaction possible it seems.
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
help(asyncio.run)
Output:
Help on function run in module asyncio.runners:
run(main, *, debug=None, loop_factory=None)
Execute the…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
Maybe a single asyncio.run is intended.
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
Python script:
from playwright.async_api import async_playwright
import asyncio
#with sync_playwright() as p:
p = asyncio.run(async_playwright().s…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
help(async_playwright())
Output:
Help on PlaywrightContextManager in module playwright.async_api._context_manager object:
class PlaywrightC…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
Python script:
from playwright.async_api import async_playwright
import asyncio
p = async_playwright().start()
browser = asyncio.run(p.firefox.launc…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
browser = await p.firefox.launch(headless = False)
File "<tmp 1>", line 6
SyntaxError: 'await' outside function
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
Python script:
from playwright.async_api import async_playwright
p = async_playwright().start()
browser = p.firefox.launch(headless = False)
</…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
help(p)
Output:
Help on PlaywrightContextManager in module playwright.sync_api._context_manager object:
class PlaywrightContextManager(buil…
Be notified in real-time on any activity (for instance connection, cursor move, typing...)
Output:
2025-12-05 16:21:25.022162 Checking at 1764948085.0221505 (lastTime=None)
2025-12-05 16:21:27.549076 Waiting forever
2025-12-05 16:21:28.537845…
No BibTeX syntax highlighting for
.bio