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)
| 169 | |
| 170 | |
| 171 | def 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 | |
| 186 | def jcache_execute(force=False): |
no test coverage detected
searching dependent graphs…