3 ms·
In addition to the sibling answers: If you know the class of an object, let's say Class, but the object has yet to be "constructed" so that IPython can correct
by ogogmad 5y ago
In addition to the sibling answers:
If you know the class of an object, let's say Class, but the object has yet to be "constructed" so that IPython can correctly infer its type, you can type `Class.[TAB]` in IPython and look at its methods.
For example, in Sympy, you have a matrix type called Matrix. You can do `(A * B).diagonalize()`, or alternatively you can do `Matrix.diagonalize(A * B)`, which has some advantages because doing `(A * B).[TAB]` does nothing useful because Python can't infer types.
You can also do the same for modules. `ModuleName.[TAB]`
To be honest though, I found the experience smoother in R for some reason.