-
Notifications
You must be signed in to change notification settings - Fork 860
create markdown cell from prompting 'Generate with AI' #7170
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| const [markdownCode] = LanguageAdapters.markdown.transformOut(wrappedPrompt, { | ||
| quotePrefix: "f", | ||
| }); | ||
| return markdownCode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think just the prompt and no styling is cleaner. something that they can choose to commit to the notebook should they want some history of the prompt.
in future, we may want to add some hidden metadata that could be use to regenerate the cells below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I think that's a good start. thanks
akshayka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of archiving the prompt. But I think most users may just end up deleting the markdown cell that is added.
Can we consider the following design alternative: prepend the prompt as a comment in the first cell generated by the assistant? To me this feels simpler and cleaner, since the prompt is more of a descriptive/archival comment of what the code does rather than a substantive comment. Here is an example.
In the future this comment could be extended with other metadata should we choose, in a way that would be awkward if it were a markdown cell.
📝 Summary
Prompts from 'Generate with AI' will create a markdown cell with the prompt.
Screen.Recording.2025-11-15.at.12.09.01.AM.mov
🔍 Description of Changes
📋 Checklist