MCPcopy Create free account
hub / github.com/anyoptimization/pymoo / jcache

Function jcache

docs/cli.py:171–183  ·  view source on GitHub ↗

Run a `jcache` command, auto-confirming the one-time cache creation prompt. The cache lives in `.jupyter_cache/` in the docs directory (cwd). It is gitignored — executed outputs live ONLY here and in the gitignored .ipynb, never in git.

(args, check=True)

Source from the content-addressed store, hash-verified

169
170
171def jcache(args, check=True):
172 """Run a `jcache` command, auto-confirming the one-time cache creation prompt.
173
174 The cache lives in `.jupyter_cache/` in the docs directory (cwd). It is
175 gitignored — executed outputs live ONLY here and in the gitignored .ipynb,
176 never in git.
177 """
178 cmd = ["jcache"] + args
179 print(f"Running: {' '.join(cmd)}")
180 result = subprocess.run(cmd, input="y\n", text=True, check=False)
181 if check and result.returncode != 0:
182 sys.exit(result.returncode)
183 return result
184
185
186def jcache_execute(force=False):

Callers 1

exec_singleFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…