Back

Autocomplete in Python available ?

Hi Everyone,

I saw this news on my Algo Lab but I cannot get it to work when writing code:

62103_1553277734.jpg

Do I need to activate the feature or something ?


Thanks 

Update Backtest







0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Stephane,

To activate it, you need to hit CTRL+Space and then autocomplete will pop up for the current code you are writing. If this doesn't work for you, try emptying the browser cache and doing a hard refresh. This should enable autocomplete for you, and if not please let us know!

0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Jack

Do you know how this works on mac? I can't seem to get it to work. 

Thanks

0

It should work the same on a Mac. Try a hard refresh, emptying the cache in your browser, and making sure the LEAN engine running in the cloud is the most recent version. If this still doesn't work, let us know and we'll try to pinpoint the issue!

0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Anyone got this to work on Mac?
I cleared the browser-cache but "CTRL + Space" is not triggering an In-Browser Python Autocomplete (Firefox 64.0.2 (64-Bit) + Chome Version 73.0.3683.103).
Am i missing something?  

0

I haven’t been able to get it to work

0

Hi Mac users,

Autocomplete in python is now available on MacOS! Please try it out by CTRL+Space and give us more feedback!

0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Autocomplete in Python available now??

I tried clean my browser cache and the autocomplete does not work.

Browser : chrome (Version 74.0.3729.157 (Official Build) (64-bit))

OS :Window 7 pro

0

Hi Barry,

Could you try to type "self." in a python algorithm and then hit CTRL+SPACE? There should be a list of methods pop up. If it still does not work for you, please let us know and we will be happy to assist you.

0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Link,

I found out the reason. As my company have more than one input language, when i press "CTRL+SPACE", the function is to change the keyboard input language. So, the autocomplete does not work.

For the people have this problem, you can change the "hot key for input language' in "Advanced key setting"

Thanks for your help.

0

I'm using Mac, Chrome Version 76.0.3809.132 (Official Build) (64-bit).  Autocomplete is painfully inconsistent. Sometimes it works, sometimes it doesn't, couldn't find any apparent pattern yet. Also, 1) when it does, it doesn't show all possible choices, 2) API hint looks to be C#

0

Looks like I found the pattern: autocompete works only when the algorithm is built. So the steps are: 

1) type  "self." 

2) wait a couple of seconds until it builds

3) hit CTRL+space 

4) wait a second

5) see the list of options

Very inconvenient as is, but also the list is incomplete, as I said. E.g. I want to type self.UniverseSettings.Resolution, this is what I get (see screenshot):

84785_1568144963.jpg

0

Hi Sergei Laptenok,

Once the build process is triggered, autocomplete is started in parallel. The autocomplete suggestions of `self.` do not include `self.UniverseSettings` because we are limiting the number of suggestions for performance reasons. Triggering autocomplete on `self.U` will present `UniverseSettings` as an option.

Step `2) wait a couple of seconds until it builds` should not be required because the Terminal will not build until you hit CTRL+space or the build button.

We've just pushed some backend improvements with the objective of making autocomplete suggestions available faster.

0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Thank you, Martin!

I might be missing something, but whenever I type anything, the Build button greys out and changes to "Building...". While it does, autocomplete doesn't respond. 

0

Please send a ticket through support with your algorithm. We can try and

debug if its something specific to your strategy
0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


I'm using a free account for now, trying to figure out if the platfrm is suitable for me,  so ticket support is not an option. I did create a new algrithm (default template) and the behaviour is the same: build triggers every time I type anything new. 

0

Hi Sergei,

Thanks for trying out QuantConnect! 

You can definitely keep sharing your questions without purchasing a paid tier. Keep sending your thoughts to the forum and our Quant team and community members can support. You are correct that build triggers every time new code is written. Can you share a bit more about what you’d like to see in the terminal in a new thread?

Thanks!
Sherry

0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed