Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 23:16:07 +01:00
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…
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 23:01:28 +01:00
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
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:45:59 +01:00
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()
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:37:47 +01:00
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…

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:22:10 +01:00
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.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:21:25 +01:00
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…
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:19:41 +01:00
Be notified in real-time on any activity (for instance connection, cursor move, typing...)

Maybe a single asyncio.run is intended.

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:18:51 +01:00
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
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:16:52 +01:00
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…
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:14:51 +01:00
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
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:13:04 +01:00
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
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:10:21 +01:00
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)

</…

Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-07 22:08:46 +01:00
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…
Benjamin_Loison commented on issue Benjamin_Loison/overleaf#3 2025-12-06 16:30:04 +01:00
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…
Benjamin_Loison opened issue Benjamin_Loison/overleaf#58 2025-12-05 17:14:28 +01:00
No BibTeX syntax highlighting for .bio
Benjamin_Loison opened issue Benjamin_Loison/overleaf#57 2025-12-05 11:18:10 +01:00
Show table of contents when viewing *History*