@@ -41,7 +41,7 @@ to come ...
41
41
42
42
## Example CLI usage
43
43
44
- <!-- This section was auto-generated on 2020-03-12 17:11 by: /Users/cjs14/GitHub/jupyter-cache/tests/make_cli_readme.py -->
44
+ <!-- This section was auto-generated on 2020-03-12 17:31 by: /Users/cjs14/GitHub/jupyter-cache/tests/make_cli_readme.py -->
45
45
46
46
From the checked-out repository folder:
47
47
@@ -141,12 +141,14 @@ You can remove cached records by their ID.
141
141
$ jcache cache list
142
142
ID Origin URI Created Accessed
143
143
---- ------------------------------------- ---------------- ----------------
144
- 5 tests/notebooks/external_output.ipynb 2020-03-12 17:11 2020-03-12 17:11
145
- 4 tests/notebooks/complex_outputs.ipynb 2020-03-12 17:11 2020-03-12 17:11
146
- 3 tests/notebooks/basic_unrun.ipynb 2020-03-12 17:11 2020-03-12 17:11
147
- 2 tests/notebooks/basic_failing.ipynb 2020-03-12 17:11 2020-03-12 17:11
144
+ 5 tests/notebooks/external_output.ipynb 2020-03-12 17:31 2020-03-12 17:31
145
+ 4 tests/notebooks/complex_outputs.ipynb 2020-03-12 17:31 2020-03-12 17:31
146
+ 3 tests/notebooks/basic_unrun.ipynb 2020-03-12 17:31 2020-03-12 17:31
147
+ 2 tests/notebooks/basic_failing.ipynb 2020-03-12 17:31 2020-03-12 17:31
148
148
```
149
149
150
+ Tip: Use the ` --latest-only ` option, to only show the latest versions of cached notebooks.
151
+
150
152
You can also cache notebooks with artefacts
151
153
(external outputs of the notebook execution).
152
154
@@ -164,8 +166,8 @@ Show a full description of a cached notebook by referring to its ID
164
166
$ jcache cache show 6
165
167
ID: 6
166
168
Origin URI: ../tests/notebooks/basic.ipynb
167
- Created: 2020-03-12 17:11
168
- Accessed: 2020-03-12 17:11
169
+ Created: 2020-03-12 17:31
170
+ Accessed: 2020-03-12 17:31
169
171
Hashkey: 818f3412b998fcf4fe9ca3cca11a3fc3
170
172
Artifacts:
171
173
- artifact_folder/artifact.txt
@@ -265,11 +267,11 @@ Success!
265
267
$ jcache stage list
266
268
ID URI Created Assets Cache ID
267
269
---- ------------------------------------- ---------------- -------- ----------
268
- 5 tests/notebooks/external_output.ipynb 2020-03-12 17:11 0 5
269
- 4 tests/notebooks/complex_outputs.ipynb 2020-03-12 17:11 0
270
- 3 tests/notebooks/basic_unrun.ipynb 2020-03-12 17:11 0 6
271
- 2 tests/notebooks/basic_failing.ipynb 2020-03-12 17:11 0 2
272
- 1 tests/notebooks/basic.ipynb 2020-03-12 17:11 0 6
270
+ 5 tests/notebooks/external_output.ipynb 2020-03-12 17:31 0 5
271
+ 4 tests/notebooks/complex_outputs.ipynb 2020-03-12 17:31 0
272
+ 3 tests/notebooks/basic_unrun.ipynb 2020-03-12 17:31 0 6
273
+ 2 tests/notebooks/basic_failing.ipynb 2020-03-12 17:31 0 2
274
+ 1 tests/notebooks/basic.ipynb 2020-03-12 17:31 0 6
273
275
```
274
276
275
277
You can remove a staged notebook by its URI or ID:
@@ -315,10 +317,10 @@ that are inside the notebook folder, and data supplied by the executor.
315
317
$ jcache stage list
316
318
ID URI Created Assets Cache ID
317
319
---- ------------------------------------- ---------------- -------- ----------
318
- 5 tests/notebooks/external_output.ipynb 2020-03-12 17:11 0 5
319
- 3 tests/notebooks/basic_unrun.ipynb 2020-03-12 17:11 0 6
320
- 2 tests/notebooks/basic_failing.ipynb 2020-03-12 17:11 0
321
- 1 tests/notebooks/basic.ipynb 2020-03-12 17:11 0 6
320
+ 5 tests/notebooks/external_output.ipynb 2020-03-12 17:31 0 5
321
+ 3 tests/notebooks/basic_unrun.ipynb 2020-03-12 17:31 0 6
322
+ 2 tests/notebooks/basic_failing.ipynb 2020-03-12 17:31 0
323
+ 1 tests/notebooks/basic.ipynb 2020-03-12 17:31 0 6
322
324
```
323
325
324
326
Execution data (such as execution time) will be stored in the cache record:
@@ -327,11 +329,11 @@ Execution data (such as execution time) will be stored in the cache record:
327
329
$ jcache cache show 6
328
330
ID: 6
329
331
Origin URI: ../tests/notebooks/basic_unrun.ipynb
330
- Created: 2020-03-12 17:11
331
- Accessed: 2020-03-12 17:11
332
+ Created: 2020-03-12 17:31
333
+ Accessed: 2020-03-12 17:31
332
334
Hashkey: 818f3412b998fcf4fe9ca3cca11a3fc3
333
335
Data:
334
- execution_seconds: 1.1132317770000002
336
+ execution_seconds: 1.0559415130000005
335
337
336
338
```
337
339
@@ -341,7 +343,7 @@ Failed notebooks will not be cached, but the exception traceback will be added t
341
343
$ jcache stage show 2
342
344
ID: 2
343
345
URI: ../tests/notebooks/basic_failing.ipynb
344
- Created: 2020-03-12 17:11
346
+ Created: 2020-03-12 17:31
345
347
Failed Last Execution!
346
348
Traceback (most recent call last):
347
349
File "../jupyter_cache/executors/basic.py", line 152, in execute
@@ -396,7 +398,7 @@ Success!
396
398
$ jcache stage show 1
397
399
ID: 1
398
400
URI: ../tests/notebooks/basic.ipynb
399
- Created: 2020-03-12 17:11
401
+ Created: 2020-03-12 17:31
400
402
Cache ID: 6
401
403
Assets:
402
404
- ../tests/notebooks/artifact_folder/artifact.txt
0 commit comments