1

Using IPython on my linux terminal (Debian), I would like to see the function signature (arguments and docstring) when I press ( after the function name, in a popup.

Notes:

  • function_name? works.

  • I'm sure that program actually sees the function data, since when I write pd.DataFrame(col<Tab> it autocompletes with columns=, an argument of pd.DataFrame.

  • I already tried Tab and S-Tab without success.

4
  • 1
    Have you tried looking at others solution on this? stackoverflow.com/a/2603811/8107458 Commented Feb 20 at 14:56
  • 1
    I'm not familiar with a way to do it, this is a good question. Note - it works on qtconsole, under the hood, it calls inspect. Also - after setting %config IPCompleter.use_jedi = False I get the list of arguments when pressing tab after function_name(. Commented Feb 20 at 15:47
  • @Shriniwas just installed pyreadline with no effect. Commented Feb 20 at 16:06
  • @idanp yes, by turning off jedi I can now see at least fun arguments, so this is definitely an improvement. But not the docstring of the function and the rest of useful stuff shown with ?. Commented Feb 20 at 16:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.