3 ms·
Not to mention the auto complete that comes with RStudio. Is there any way to get equivalent functionality in Jupyter?
by alexilliamson 5y ago
Not to mention the auto complete that comes with RStudio. Is there any way to get equivalent functionality in Jupyter?
- CapmCrackaWaka 5y agoI use pycharm which has decent autocomplete. Pycharm has its own issue though, it fills out its autocomplete info by looking at the function that created the object, not the object itself. So if a function can return different types, autocomplete won’t work. That’s caused me quite a bit of pain.
- discordance 5y agoIf you set up use the Jupyter extension[0] and open your notebooks in VS Code you get Intellisense (code completion, method info and hints etc). 0: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter https://marketplace.visualstudio.com/items?itemName=ms-tools...
- claytonjy 5y agoIME this is strictly worse than the RStudio experience; most of the time I hit tab in a VSCode notebook I get way too many options that IMO are clearly not what I want, though at some level it's more pandas' fault (too many methods & attributes even before attaching every column name as an attribute) than VSCode or Intellisense.
- ogogmad 5y agoIn 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.