Files
marqdo/public/stdlib/foreign.mq.md
T
cflmyandCursor 1f23e2ed93 Add module namespaces and harden L1/agent after the import redesign.
Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 13:28:32 +08:00

649 B


title: lib/foreign — external languages description: Run local interpreters from Marqdo (English)

lib/foreign.mq.md


main

Import lib/foreign.mq.md. Bind a code fence like a formula: empty-RHS assign then a ```lang block. The value type is code. Call run code=name to execute via your local interpreter. run_lang runs an inline source string.

hi =

print("hello-from-python")

Default command is python (Windows) or python3 (Unix). Override with set_cmd, env MARQDO_FOREIGN_PYTHON, or the command box in live view. Failures ask you to check that configuration.

*out = > foreign.run code=hi *

print text=out