Open ZihaoXingUP opened 3 years ago
the biggest problem is how to get the help document of the function
for example if you call a function np.exp
. How to know if it is the exp
function in numpy
?
I can implement a solution but I don't know if it is what you want.
For example, if the cursor in on np.exp
and press some button, then help(np.exp)
is sent to the REPL environment. So you have to toggle REPL environment manually and import numpy as np
by hands.
I can implement a solution but I don't know if it is what you want.
For example, if the cursor in on
np.exp
and press some button, thenhelp(np.exp)
is sent to the REPL environment. So you have to toggle REPL environment manually andimport numpy as np
by hands.
I can implement a solution but I don't know if it is what you want.
For example, if the cursor in on
np.exp
and press some button, thenhelp(np.exp)
is sent to the REPL environment. So you have to toggle REPL environment manually andimport numpy as np
by hands.
Nvim-R会找到所有有这个函数名的R包,然后让你选择用哪个R包里的这个函数的帮助文档。
I can implement a solution but I don't know if it is what you want. For example, if the cursor in on
np.exp
and press some button, thenhelp(np.exp)
is sent to the REPL environment. So you have to toggle REPL environment manually andimport numpy as np
by hands.
help(np.exp)不要发送到解释器里,因为这样函数的帮助文档会占用了解释器的窗口,不能再发送和执行其它代码了,我希望是像Nvim-R那样,会新分割出一个窗口来显示函数的帮助文档,在查看函数帮助文档的同时,可以继续选择执行R脚本中的代码,同时也可以把函数帮助文档窗口中的R代码也能发送到解释器中
现在的问题是这样的,如果新开一个python窗口,直接发送 help(np.exp) 过去会出现 np not defined 的情况,所以一定要提前告诉帮助的python窗口 np.exp 是什么,所以如果新打开一个python窗口,需要同时把 import numpy as np
也发送过去。
能不能像Nvim-R这个vim插件那样,把光标放到一个函数名上,然后对着这个函数名按\rh, 就可以新分割出一个窗口显示该函数的帮助文档.