Skip to content

Conversation

@Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Nov 13, 2025

📝 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

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Nov 14, 2025 4:07pm

const [markdownCode] = LanguageAdapters.markdown.transformOut(wrappedPrompt, {
quotePrefix: "f",
});
return markdownCode;
Copy link
Contributor

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

Copy link
Contributor Author

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

@Light2Dark Light2Dark changed the title create markdown cell from prompt create markdown cell from prompting 'Generate with AI' Nov 14, 2025
@Light2Dark Light2Dark marked this pull request as ready for review November 14, 2025 17:39
@Light2Dark Light2Dark requested a review from manzt as a code owner November 14, 2025 17:39
Copy link
Contributor

@akshayka akshayka left a 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.

image

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.

@Light2Dark Light2Dark marked this pull request as draft November 20, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants