You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting UsageError: %%ai is a cell magic, but the cell body is empty. Did you mean the line magic %ai (single %)? when I ran %%ai in a Glue Notebook.
Reproduce
Just run in a Glue Notebook
%%ai chatgpt
tell me a joke
Expected behavior
Context
Operating System and version:
Browser and version:
JupyterLab version:
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
The text was updated successfully, but these errors were encountered:
@ahlag I am not able to reproduce your error in the current version of Jupyter AI, everything seems to work as intended with the %%ai chatgpt magic. Though I have not tried a Glue notebook, as I need to set up access for that. Can you try a few things to see if they work?
There are similar issues with JupyterLab magics and sometimes it is resolved by trying to add a return before or after the
"tell me a joke" (which should be on a separate line from the first one). See for example this version of your error:
(There may be a missing newline/return in your Glue notebook.)
If this does not work, can you try using the full model id to see if that works? %%ai openai-chat:gpt-3.5-turbo (instead of %%ai chatgpt)
Finally, reinstall Jupyter AI and load magics in your Glue notebook:
pip install jupyter-ai
pip install jupyter-ai-magics (just to be sure)
pip install langchain-openai
%load_ext jupyter-ai-magics
Now try your magics again.
Description
I am getting
UsageError: %%ai is a cell magic, but the cell body is empty. Did you mean the line magic %ai (single %)?
when I ran%%ai
in a Glue Notebook.Reproduce
Just run in a Glue Notebook
Expected behavior
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: