MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / run_code

Function run_code

demos/output_usage.py:21–23  ·  view source on GitHub ↗
(code, scope)

Source from the content-addressed store, hash-verified

19 code = code.strip('\n')
20
21 def run_code(code, scope):
22 with use_scope(scope):
23 exec(code, globals())
24
25 with use_scope() as scope:
26 put_code(code, 'python')

Callers

nothing calls this directly

Calls 1

use_scopeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…