-
Hello! I would like to insert the result of SnipRun just below current cursor position,
I was hoping to be able to do something like
But run_range doesn't work like that, could you help me ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well, run_range doesn't return the result to the caller.... However calling it with display= {"Api"} is a good idea since you don't want to display results in one of the existing display modes. Refer to the api display mode docs to register a function that will be called by sniprun when it's called (with display={"Api"}): https://michaelb.github.io/sniprun/sources/display_modes.html#api-display |
Beta Was this translation helpful? Give feedback.
aha ! I managed to do it !