Back

Visual studio IntelliSense Support for Python

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.

67463_1551796057.jpg

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.


I think pythonnet does not support intellisense for visual studio yet.

https://github.com/pythonnet/pythonnet/issues/255

1

We've got some exciting updates for python autocompletion feature in cloud coming soon :)

We also have Debugging Python in Visual Studio Tutorial.

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.


Thanks both of you. It is very nice to see the progress Quantconnect has made. Can't wait for the autocompletion feature in cloud

0

Is the feature now available with Visual Studio? I really would need autocomplete / IntelliSense to code locally with Python.

0

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.

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 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.

1

Thanks Torsten I didn't realize it was not working even locally. We'll fix that ASAP.

 

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 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.

 

0

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. 

 

0

+1 Eager to see this feature in VS. I really don't want to border using C# code, not that efficient  as Python.

0

doing the boot camp and autocomplete or intellisense is broken.. 

0

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.

0

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