I have followed the documentation , I have from AlgorithmImports import * at the top of the file. Still getting “No suggetsions” when pressing ctrl+space
QUANTCONNECT COMMUNITY
I have followed the documentation , I have from AlgorithmImports import * at the top of the file. Still getting “No suggetsions” when pressing ctrl+space
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.
Mia Alissi
Here's a step-by-step guide to troubleshoot the issue of not getting autocomplete suggestions in your Python environment on QuantConnect:
Verify Imports: Ensure that the line
from AlgorithmImports import *
is correctly placed at the top of your Python file.Update Autocomplete: Make sure you have updated the Python autocomplete to the latest version by running the following command in your terminal:
Editor Configuration: Ensure your code editor (e.g., VS Code, PyCharm) is configured correctly for Python development. For VS Code, ensure you have the Python and Pylance extensions installed. For PyCharm, ensure it has indexed all packages.
Project Directory: Open the project directory generated by the Lean CLI in your code editor and ensure that the editor has finished indexing all packages.
Restart Editor: Sometimes, simply restarting your code editor can resolve issues with autocomplete not functioning properly.
Check for Errors: Look for any syntax errors or issues in your code that might be preventing the autocomplete from working as expected.
If you've followed all these steps and the issue persists, it might be worth checking if there are any specific settings or configurations in your editor that could be affecting the autocomplete functionality.
Sources: Autocomplete - QuantConnect.com
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.
Eugene Kriuchkov
Phew, I have fixed it by disabling and then enabling Pylance extension in VSCode. Just restarting VSCode and even rebooting the PC didn't work.
Eugene Kriuchkov
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!