Hi,
I have issues setting up QC/LEAN+PYTHON+VSCODE+DOCKER. I am not able to run LEAN in a container. I followed the instructions until "Running Lean in the Container - Option 1" from https://github.com/QuantConnect/Lean/blob/master/.vscode/readme.md#option-1-recommended. But I cannot find the tasks.json (it opens a launch.json when click on configure "Debug in Container"). Also I don't know how/where to put the run-docker task arg..
I changed the launch.json to:
{
"name": "Debug in Container",
"type": "python",
"preLaunchTask": "run-docker",
"args": [
"IMAGE=quantconnect/lean:latest",
"CONFIG_FILE=${workspaceFolder}/Launcher/config.json",
"DATA_DIR=${workspaceFolder}/Data",
"RESULTS_DIR=${workspaceFolder}/Results",
"DEBUGGING=Y",
"PYHTON_DIR=${workspaceFolder}/Algorithm.Python"],
"postDebugTask": "close-docker",
"request": "attach",
"address": "localhost",
"port": 55555
}
VSCODE claims:Property args/address is not allowed.
Thank you for your support.
Nick Tidswell
task.json is in the .vscode folder and has all those args filled in there. Remove them from your config.json
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!