execnb 0.1.13__py3-none-any.whl → 0.1.14__py3-none-any.whl

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.
execnb/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.13"
1
+ __version__ = "0.1.14"
execnb/shell.py CHANGED
@@ -129,12 +129,10 @@ def _out_nb(o, fmt):
129
129
  if o.stdout: res.append(_out_stream(o.stdout, 'stdout'))
130
130
  if o.stderr: res.append(_out_stream(o.stderr, 'stderr'))
131
131
  if o.exception: res.append(_out_exc(o.exception))
132
- r = o.result.result
133
- if hasattr(r, '__ft__'): r = r.__ft__()
134
- res.result = r
132
+ res.result = o.result.result
135
133
  for x in o.display_objects: res.append(_mk_out(x.data, x.metadata))
136
- if r is not None and not o.quiet and not isinstance_str(r, 'FT'):
137
- res.append(_mk_out(*fmt.format(r), 'execute_result'))
134
+ if res.result is not None and not o.quiet:
135
+ res.append(_mk_out(*fmt.format(res.result), 'execute_result'))
138
136
  if 'execution_count' not in o: o['execution_count']=None
139
137
  for p in res:
140
138
  if p["output_type"]=="execute_result": p['execution_count'] = o['execution_count']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: execnb
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary: A description of your project
5
5
  Home-page: https://github.com/AnswerDotAI/execnb/
6
6
  Author: Jeremy Howard
@@ -0,0 +1,10 @@
1
+ execnb/__init__.py,sha256=PIBqEOI-nqKFL9oJAWQQwlHuujG9Cd7EmdxDrThNQto,23
2
+ execnb/_modidx.py,sha256=5VB9uTJiRMiFNsXUWcd2J5p1jvvV36vsmQPUCWuqzrE,6308
3
+ execnb/nbio.py,sha256=gs3EGN0sP2j47XUH31rTn2KT57b3wWnBZsn9AoZm2JQ,3677
4
+ execnb/shell.py,sha256=niwL2lZ4m3EldXdDJ44Xeqtj8QHO27isQavtSxxFk8c,13655
5
+ execnb-0.1.14.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
6
+ execnb-0.1.14.dist-info/METADATA,sha256=itr3VlUJNDnqoayPLHOJkFdoNC91GUv3Ai_Mkd5iY-0,3587
7
+ execnb-0.1.14.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
+ execnb-0.1.14.dist-info/entry_points.txt,sha256=jZ8LPZCqnu4hXN_AgQpm05hVnTE-C25YK_4aiVX4i78,84
9
+ execnb-0.1.14.dist-info/top_level.txt,sha256=VGWmzsw8FOlT1r5TdOxaTWIAyRdclcxNdJ2r1hojf5U,7
10
+ execnb-0.1.14.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- execnb/__init__.py,sha256=khDKUuWafURKVs5EAZkpOMiUHI2-V7axlqrWLPUpuZo,23
2
- execnb/_modidx.py,sha256=5VB9uTJiRMiFNsXUWcd2J5p1jvvV36vsmQPUCWuqzrE,6308
3
- execnb/nbio.py,sha256=gs3EGN0sP2j47XUH31rTn2KT57b3wWnBZsn9AoZm2JQ,3677
4
- execnb/shell.py,sha256=lL0I5vMYjhaeD3WFKwXekyAAAb-4kjosA1PFd-IrpKE,13723
5
- execnb-0.1.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
6
- execnb-0.1.13.dist-info/METADATA,sha256=Uotcx1EkHSBT6yFY6T4Qpg0gZ1X2SPnNBif6yZetQw8,3587
7
- execnb-0.1.13.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
8
- execnb-0.1.13.dist-info/entry_points.txt,sha256=jZ8LPZCqnu4hXN_AgQpm05hVnTE-C25YK_4aiVX4i78,84
9
- execnb-0.1.13.dist-info/top_level.txt,sha256=VGWmzsw8FOlT1r5TdOxaTWIAyRdclcxNdJ2r1hojf5U,7
10
- execnb-0.1.13.dist-info/RECORD,,