Today, we’re releasing a long requested feature that should make the IDE experience more productive. Tab complete is now available in the IDE, and works similarly to tab completion on the research platform. It can help you discover new APIs, or spend less time typing.
How it works
If you’re new to tab completion, it's pretty simple. In the middle of typing out a word, press Tab, and one of two things will happen:
- If there’s only one possible suggestion, such as
impcompleting toimport, then pressing Tab will complete the word for you. - If there are multiple possible suggestions, like
Fundamentals.mawhich could complete toFundamentals.market_cap,Fundamentals.marketing_expensesor many more, then pressing Tab will bring up a list of options. When you choose an option from the list, the word will be completed for you
Suggestions will also come up when you press period. For example, quantopian. (note the period at the end) will bring up a list of suggestions.
Here’s an example of it in action:
Tab complete is a powerful way to discover new fields in a dataset, like in the example above, or even new datasets altogether. Try hitting Tab after from quantopian.pipeline.data import to see all the options that come up!
Tab complete also works with non-quantopian modules. Here’s an example of tab-completion with pandas:
For existing IDE users, there’s one change to be aware of. Special-case completions for functions like set_commission and set_slippage have been removed, and those functions now use the same, unified tab complete experience. However, the sid( autocomplete remains, and typing sid( will still allow you to search for sids by ticker, number, or entity name.
How do I use it?
UPDATE: Tab complete is now enabled by default. You can still toggle it back and forth via the settings menu, as described below.
You can enable tab complete by going to the settings menu on the top right of the IDE, and clicking ‘Use Tab Complete’. If you’d like to switch it off, you can go back to the settings menu and uncheck the tab complete option.
Tab complete is still experimental, so all feedback is welcome! I'd also like to add a special thank you to Freddie Vargus for building this feature during his internship at Quantopian.
Happy coding,
Abhi