ubsuny / CP1-24-HW1

Homework template for CP1 in 2024
1 stars 17 forks source link

Editing devcontainer and qiskit.txt #45

Closed SchrodingersStruggle closed 2 months ago

SchrodingersStruggle commented 2 months ago

These edits allow codespaces on vscode to run on startup with no need for manual installations by specifying the locations of the initial setup in the devcontainer.json.

They also allow the codespace to use other interpreters than the python 3.9 interpreter which worked. This includes the python 3.12 interpreters.

I created a few entirely fresh codespaces to test, and with these two changes these has been absolutely no issues on startup, and it can create a Jupyter file, import qiskit, and run code with no issues.

laserlab commented 2 months ago

Thanks! That is a solution, however it installs the whole environment twice which makes the container bigger and it takes longer to set up. I merge this now since it works but I will keep the issues open till there is a solution that figures out how to determine how to keep the python3 command consistent.

ojha-aditya commented 1 month ago

@laserlab So based on this, we can now use the 3.12.6 kernel without running into error on our codespace? Once it is synced with the change, that is.

SchrodingersStruggle commented 1 month ago

@ojha-aditya Yes, a codespace should be able to run python 3.12.6 without issue now.

ojha-aditya commented 1 month ago

Great! Will give that a try then.