top | item 44640398

(no title)

WillNickols | 7 months ago

Thanks for the comments! We're working on the shortcuts but that should come soon. If you edit the code in the conversation before you hit run, it'll actually let you modify it and then run that code when you hit Run. (Try "Generate 10 normals in the console" and then change it to 20 when it gives rnorm(10).)

Can you say a bit more about what you mean with line-by-line running from a script? Would the script show up in the editor pane (top left) and then you'd run the script line by line and the AI would see the outputs from that code being run?

discuss

order

nomilk|7 months ago

I wouldn't expect the AI to see the output of the human running code line by line, but simply that when AI generates code, it places it in the script pane (just how cursor typically edits file(s) to place its generated code in the right places within those files).

For quick and dirty EDA in R, the appropriate place is probably just going to be the bottom of the current script. For example here [0] Rao gives the requested code; rather than being presented with Run/Cancel options, I'd prefer an 'Accept' button that places the code at the end of the current script in the script pane so it can be read by the human and run a line at a time (to verify that it works each step of the way)

[0] https://imgur.com/a/8x4Ykdt

WillNickols|7 months ago

Makes sense - we're planning to have "Rao rules" (essentially Cursor rules) out tomorrow, so you'll be able to include an instruction that it should always append to some file you have open. Hopefully it obeys that and then you can run the code from there.