Back to Community
Does IDE have autocomplete?

In Quantopian documentation screenshots i can see the autocomplete, but everytime that i write something as simple as symbol("XKL"). i don't get any suggested method to use.

I wanted to embed the image here, but forum's post editor doesn't have an icon for that, so:
https://www.quantopian.com/assets/help-schedulefunction-date-9f37f8046b9344fb8f7f5497161678dfb4a94af95d5d868c8c936416110a52f5.png

7 responses

There is an autocomplete in the IDE, but it doesn't cover everything. Some examples that are covered:

  • If you type symbol( or sid( you'll get a type-ahead symbol and company lookup
  • If you type set_ you'll see a number of functions, each of which has it's own tooltip
  • If you type order_ you'll get a bunch of different order types

But as you have discovered, we haven't built an autocomplete for things like properties on an equity object.

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Thanks for replying! I saw that it easily loses the capacity to autocomplete things when they are set as vars.

I've also seen that there are no links between documentation things like "returns an equity/asset/etc. object" shouldn't it point to that object model/properties?
There are also some other unlinked (but not that important) references: "can be found in the API documentation below." some of phrases have links, others not.

I have just started with Quantopian today and I was also looking for a way to autocomplete code.
You can use the TAB key like in many other IDEs but you need to enable this feature.
Look at screenshot in the link below.
https://www.dropbox.com/s/5zvh3d3549itg1p/

Funny thing is, though, that I'm following Harrison Kinsley's tutorial (Algorithmic Trading) which you have now incorporated into the Quantopian website, and in the videos, whenever he types something he gets autocomplete recommendations. But I follow his exact steps and see nothing of the sort. Only thing that autocompletes for me is the SID.

Hi John,

Since the time of that tutorial, we've updated our autocomplete to be both more powerful and more intuitive for IDE users. Instead of just covering a few select methods, autocomplete now works like it does in the research environment, or in other IDEs - pressing Tab will bring up suggestions for nearly anything, instead of just a few select methods.

To trigger an autocomplete suggestion, press Tab in the middle of the string you're typing (for example, from quantopian.pipeline.data import <Tab>). If there are valid completions, you'll either see the word fill out for you (if there's just one valid choice), or get a list of suggestions. In action, it looks like this:

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

I understand that APIs are always changing and might have changed since the tutorial was created, so not everything I see in a tutorial will always work the same, but some significant things appear to be missing. For example, the tutorial uses date_rules.everyday() but autocomplete suggests that method no longer exists. (Screenshot here: https://drive.google.com/open?id=178yRnmOIQQ2Qul0yAUEErgTfjK2xmbIR).

@John thanks for pointing that out. date_rules.every_day() continues to exist in schedule_function, but due to a bug in our module parsing, tab complete isn't picking that up. I've recorded the issue in our bug tracker so we can get it fixed.