MCPcopy Index your code
hub / github.com/pyscript/pyscript / getRelatedScript

Function getRelatedScript

core/src/plugins/py-editor.js:39–42  ·  view source on GitHub ↗
(target, type)

Source from the content-addressed store, hash-verified

37};
38
39const getRelatedScript = (target, type) => {
40 const editor = target.closest(`.${type}-editor-box`);
41 return editor?.parentNode?.previousElementSibling;
42};
43
44async function execute({ currentTarget, script }, onBeforeRun = "") {
45 const { env, pySrc, outDiv } = this;

Callers 2

executeFunction · 0.85
makeRunButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected