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
When the notebook author wants a generative AI model to generate code, the output is in markdown or raw (text) format, so the notebook author cannot run the generated code as they can run other code in their notebook.
Proposed Solution
Add a --format code format option. When the user runs a %%ai magic command with this option, Jupyter AI inserts a new code cell using ipylab that contains the source code produced.
Update the example notebooks and documentation to include information about --format code.
Additional context
The --format code option should apply a prompt template to ensure that only source code, with no plain-text explanations, get output. See #42.
The text was updated successfully, but these errors were encountered:
Problem
When the notebook author wants a generative AI model to generate code, the output is in markdown or raw (text) format, so the notebook author cannot run the generated code as they can run other code in their notebook.
Proposed Solution
Add a
--format code
format option. When the user runs a%%ai
magic command with this option, Jupyter AI inserts a new code cell using ipylab that contains the source code produced.Update the example notebooks and documentation to include information about
--format code
.Additional context
The
--format code
option should apply a prompt template to ensure that only source code, with no plain-text explanations, get output. See #42.The text was updated successfully, but these errors were encountered: