Hello,
I would like to create a function that populates a table under the cursor. Let me explain better: I have a python function that outputs a table for the sake of having the simplest example lets say I have a python function that returns a 10x10 random matrix e.g.
def myfn():
import numpy as np
return np.random.randn(10,10).tolist()
What I would like to do, is to create a function say mycalcfunc that simply calls the python function and places the generated table under the cursor meaning that the top left edge of the table is the selected cell.
How do I do this? I have been strugling with basic.
Thanks a lot in advance!