Skip to content
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

Executing the suggested code blocks #13

Open
svilupp opened this issue Mar 19, 2023 · 1 comment
Open

Executing the suggested code blocks #13

svilupp opened this issue Mar 19, 2023 · 1 comment

Comments

@svilupp
Copy link

svilupp commented Mar 19, 2023

Thank you for the awesome package!

What would be the best way to execute the code provided in chatGPTs response?

@ThatcherC
Copy link
Owner

Cool idea! I'm not sure how we'd accomplish that but it would be cool. The tricky thing (I think) would be identifying part of the response is Julia code. Sometimes ChatGPT puts code snippets in fences but sometimes it just emits them without markdown too. Also, the user might sometimes ask for code in a different language, and we'd have to figure out whether or not it's code Julia should try to run (although this might be doable with Julia's reflection and metaprogramming stuff!).

Right now I'm just using the Markdown package to render terminal outputs, so we'd have to switch away from that or modify it to have a little "Run" button... not quite sure how to do that either but feels approachable.

Let's keep mulling on this and see if any good ideas come up!

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

No branches or pull requests

2 participants