Skip to content

Navigation Menu

Sign in
Sign up

Ideas for Code and Markdown Interaction #296

swk777 started this conversation in Ideas
Discussion options

I have a few ideas on how we can use Markdown’s flexibility to enhance our UI without a lot of extra work.

1.	Dynamic Content Binding in Markdown

We could set it up so that Markdown can link to code outputs, something like {{ cellName.xxx }}. We could also later allow users to select cells directly from the UI. This would allow us to display different types of outputs—text, images, HTML, whatever—right in Markdown. Sure, we’ll need to design some mechanisms to support this. This would make the interface more richer in content.

2.	Code-Notebook Interaction API

Another idea is to create an API that lets the code read and interact with notebook cells, with functions like getCells, insertCell or modifyCell. This could be useful for a bunch of LLM chat use cases, like:
• Code reading user-input prompt cells
• Appending responses to existing cells or creating new ones
• Using the output cell as context for the next interaction if we can read all the cells in the code

This would basically turn the notebook into a natural chat interface

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /