fastcore 2.2.39__tar.gz → 2.2.41__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastcore-2.2.39/fastcore.egg-info → fastcore-2.2.41}/PKG-INFO +1 -1
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/__init__.py +1 -1
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/nbio.py +2 -1
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/xtras.py +1 -0
- {fastcore-2.2.39 → fastcore-2.2.41/fastcore.egg-info}/PKG-INFO +1 -1
- {fastcore-2.2.39 → fastcore-2.2.41}/CONTRIBUTING.md +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/LICENSE +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/README.md +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/_modidx.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/aio.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/all.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/ansi.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/apisurface.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/basics.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/dispatch.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/docments.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/docscrape.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/editskill.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/foundation.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/funccall.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/imghdr.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/imports.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/meta.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/nb_imports.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/net.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/parallel.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/py2pyi.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/script.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/shutil.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/style.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/test.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/tools.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/transform.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/utils.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/xdg.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore/xml.py +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore.egg-info/SOURCES.txt +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore.egg-info/dependency_links.txt +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore.egg-info/entry_points.txt +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore.egg-info/requires.txt +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/fastcore.egg-info/top_level.txt +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/pyproject.toml +0 -0
- {fastcore-2.2.39 → fastcore-2.2.41}/setup.cfg +0 -0
|
@@ -563,7 +563,7 @@ def mk_error(traceback, ename='', evalue=''):
|
|
|
563
563
|
|
|
564
564
|
# %% ../nbs/13_nbio.ipynb #493e36b0
|
|
565
565
|
def concat_streams(outputs):
|
|
566
|
-
"Concatenate
|
|
566
|
+
"Concatenate stdout/stderr and Markdown streams, preserving execute_result at end"
|
|
567
567
|
streams, res, execute_results = {}, [], []
|
|
568
568
|
for out in outputs:
|
|
569
569
|
if out['output_type'] == 'stream':
|
|
@@ -573,6 +573,7 @@ def concat_streams(outputs):
|
|
|
573
573
|
else: res.append(out)
|
|
574
574
|
for name in ('stdout','stderr'):
|
|
575
575
|
if name in streams: res.append(mk_stream(name, clean_cli_output(streams[name], strip=False)))
|
|
576
|
+
if 'markdown' in streams: res.append(mk_display(text_markdown=streams['markdown']))
|
|
576
577
|
res.extend(execute_results)
|
|
577
578
|
return res
|
|
578
579
|
|
|
@@ -1262,6 +1262,7 @@ def flexicache(*funcs, maxsize=128):
|
|
|
1262
1262
|
async def async_wrapper(*args, **kwargs):
|
|
1263
1263
|
return await _cache_logic(f"{args} // {kwargs}", lambda: asyncio.ensure_future(func(*args, **kwargs)), args, kwargs)
|
|
1264
1264
|
|
|
1265
|
+
wrapper.cache_clear = async_wrapper.cache_clear = cache.clear
|
|
1265
1266
|
return async_wrapper if asyncio.iscoroutinefunction(func) else wrapper
|
|
1266
1267
|
return _f
|
|
1267
1268
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|