Skip to content

Commit b8648c0

Browse files
Add tool magic variable
1 parent cb8f9cc commit b8648c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/axiomatic/magic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def ax_tool(self, tool, cell):
126126
time.sleep(3)
127127
else:
128128
if result.status == "SUCCEEDED":
129+
os.environ["TOOL_RESULT"] = result.output
130+
get_ipython().user_ns['tool_result'] = result.output
129131
print(result.output)
130132
else:
131133
print(result.error_trace)

0 commit comments

Comments
 (0)