From what I searched on the forum, I understand that the autocomplete feature in using python on the cloud is not yet supported and it is planned to be added as a new feature.
And my question is whether the Visual studio IntelliSense is Support for Python? I encounter the error as attached in the screenshoot. Is this a known issue or is this only me so that I can fix it?
Thanks in advance.
Michael Manus
I think pythonnet does not support intellisense for visual studio yet.
https://github.com/pythonnet/pythonnet/issues/255
Jared Broad
We've got some exciting updates for python autocompletion feature in cloud coming soon :)
We also have Debugging Python in Visual Studio Tutorial.
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.
Tony Tony Tony
Thanks both of you. It is very nice to see the progress Quantconnect has made. Can't wait for the autocompletion feature in cloud
Torsten Gehrsitz
Is the feature now available with Visual Studio? I really would need autocomplete / IntelliSense to code locally with Python.
Rahul Chowdhury
Hi Torsten,
Visual Studios has autocomplete/intellisense for Python and its libraries.
But if you try to access QCAlgorithm in VS, like by typing self.SetStartDate(), autocomplete won't work because QCAlgorithm is in C# and Visual Studio's autocomplete is not able to handle two languages at the same time. However, we have implemented an autocomplete in our IDE.
Torsten Gehrsitz
Hi Rahul,
Â
this is exactly what I already figured out. Unfortunately the autocomplete feature in your IDE is very slow, doesn´t work precisely and therefore not useable at all. It is not comparable with the autocomplete function of a "real" IDE which I am used to. Therefore I tried to use Visual Studio instead. But as you said it can´t be used for the QCAlgorithm (for which I would actually ONLY need it...).Â
Hope there will be future improvements either in the Web IDE or a native Python Framework which can be used in an offline IDE.
Jared Broad
Thanks Torsten I didn't realize it was not working even locally. We'll fix that ASAP.
Â
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.
Torsten Gehrsitz
Hi Jared,
thanks, that would be really awesome to have Autocomplete / Intellisense support for the Quantconnect Libraries in Visual Studio. Especially for me as a beginner it could help me speed up generate my code as I don´t know all the methods, classes and required input parameters yet.
Â
Shih Devin
Hi I'm bothered by this issue too, but I got a temporary solution for local auto-complete. Atom editor scans all opening files in the tab, so if you openÂ
Algorithm/QCAlgorithm.Python.cs
AlgorithmFactory/Python/Wrappers/AlgorithmPythonWrapper.cs
In Atom tabs, you can kinda auto-complete "words", but you can't get the relations of them or jump to the class/function to look up definitions.Â
Â
Chen xiang
+1 Eager to see this feature in VS. I really don't want to border using C# code, not that efficient as Python.
Vincent Tan
doing the boot camp and autocomplete or intellisense is broken..Â
Il Jae Lee
Hi,
The autocomplete for Visual Studio 2019 OSX seems broken.
The code authoring environment is overall terrible for OSX. A direction I would suggest is to build a native Python wrapper (that can in turn call the PythonNet wrapped functions) around the C# engine to support local development.
Thanks.
Leu Bar
Hi guys, is it any updates realted to this topic?
Jared Broad
Autocomplete 1.0 has been shipped for a while now, and autocomplete v2 is in progress thanks to work from Jasper van MerleÂ
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.
Tony Tony Tony
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!