Simple .devcontainer setup with the scope of being quantum computing toolkit
- A container system installed that works with vscode
- For Windows 10: Docker Desktop
- -WARNING:- If git push/pull gives you
http.sslBackend schannelerrors, remove it from your~/.gitconfig
- -WARNING:- If git push/pull gives you
- For Windows 10: Docker Desktop
- vscode
- Extensions:
azuretools.vscode-dockerms-vscode-remote.vscode-remote-extensionpack
- Extensions:
- clone this repo to your computer
- start VSCODE and open the cloned repo as working folder/project
- Make sure the Docker daemon is running!
- Click the button that says to open in a container
- Note: if the popup doesn't show it self hit
F1and the start to typeRebuildand you should seeDev Containers: Rebuild and Reopen in Container
- Note: if the popup doesn't show it self hit
- Wait for the container to download/build
There are two ways to us this set:
-
Inside VSCODE
- Raw python coding
- Jupyter notebooks extension.
-
Using Jupyter Notebooks webgui
- After the container is up and running
- copy the token that is autogenerated or
- in shell run
jupyter server listto get the token
- goto http://localhost:8888 (or whatever port you setup)
- paste in the initial access token and setup a password
- After the container is up and running
You get what is shown below, just follow the instructions if needed
>>>git status
fatal: detected dubious ownership in repository at '/home/jovyan/work'
To add an exception for this directory, call:
git config --global --add safe.directory /home/jovyan/work>>>git pull
fatal: Unsupported SSL backend 'schannel'. Supported SSL backends:
gnutlsUnsupported SSL backend is likely using Docker Desktop on windows. Fix: unset/clear http.sslbackend
git config --global --unset http.sslbackend
- Currently builds off of image produced here: https://github.com/QuantumStudyGroup/container-stacker