Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Err variable so a user can pass a traceback to the LLM #41

Closed
JasonWeill opened this issue Apr 7, 2023 · 0 comments · Fixed by #34
Closed

Create Err variable so a user can pass a traceback to the LLM #41

JasonWeill opened this issue Apr 7, 2023 · 0 comments · Fixed by #34
Labels
enhancement New feature or request @jupyter-ai/magics

Comments

@JasonWeill
Copy link
Collaborator

Problem

Jupyter notebook authors would like to pass an error generated by their code to a large language model (LLM) so that they can understand the error better.

  1. User runs code
  2. Code throws an error
  3. User wants to ask the LLM what the error means, without copying and pasting the error into a new prompt

Proposed Solution

Create a special Err list variables, with the same indexes as the In and Out variables provided by IPython. When a user runs code in cell In[n] that raises an uncaught exception, information about that exception is captured, as a string, in Err[n], and still displayed in the output area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request @jupyter-ai/magics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant