%3CLINGO-SUB%20id%3D%22lingo-sub-1264988%22%20slang%3D%22en-US%22%3EUsing%20Visual%20Studio%20Code%20from%20a%20docker%20image%20locally%20or%20remotely%20via%20VS%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1264988%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VisualStudioOnline.PNG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F180597i514B880B135E0EB5%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22VisualStudioOnline.PNG%22%20alt%3D%22VisualStudioOnline.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLee%20Stott_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EUtilising%20Custom%20Container%20builds%20to%20spin%20up%20a%20custom%20Visual%20Studio%20Code%20Environment%20for%20use%20on%20premise%20with%20Visual%20Studio%20Code%20or%20Online%20with%20Visual%20Studio%20Online%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-414783348%22%20id%3D%22toc-hId-414783348%22%20id%3D%22toc-hId-414783348%22%20id%3D%22toc-hId-414783348%22%3EUsing%20Visual%20Studio%20Code%3C%2FH1%3E%0A%3CP%3EPlease%20see%20the%20following%26nbsp%3B%20repository%20contains%20a%20Visual%20Studio%20Code%20container%20build%20and%20instructions%20on%20deployment%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20a%20Devcontainer%20custom%20docker%20image%20within%20the%20rep%20is%20a%20folder%20.devcontainer%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWithin%20.devcontainer%20are%20two%20file%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDockerfile%20-%20docker%20installation%20file%3C%2FP%3E%0A%3CP%3Edevcontainer.json%20-%20Json%20file%20for%20the%20container%20build%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDockerFile%20-%20this%20file%20is%20the%20build%20of%20the%20docker%20image%20for%20the%20dev%20environment%20and%20includes%20things%20like%20python%20library%20installations%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3E%23-------------------------------------------------------------------------------------------------------------%0A%23%20Copyright%20(c)%20Microsoft%20Corporation.%20All%20rights%20reserved.%0A%23%20Licensed%20under%20the%20MIT%20License.%20See%20https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D2090316%20for%20license%20information.%0A%23-------------------------------------------------------------------------------------------------------------%0A%0A%23Python%20Versions%0A%23FROM%20python%3A3%0A%23Python%20Anaconda%0AFROM%20continuumio%2Fanaconda3%0A%0A%23%20Avoid%20warnings%20by%20switching%20to%20noninteractive%0AENV%20DEBIAN_FRONTEND%3Dnoninteractive%0A%0A%23%20This%20Dockerfile%20adds%20a%20non-root%20user%20with%20sudo%20access.%20Use%20the%20%22remoteUser%22%0A%23%20property%20in%20devcontainer.json%20to%20use%20it.%20On%20Linux%2C%20the%20container%20user's%20GID%2FUIDs%0A%23%20will%20be%20updated%20to%20match%20your%20local%20UID%2FGID%20(when%20using%20the%20dockerFile%20property).%0A%23%20See%20https%3A%2F%2Faka.ms%2Fvscode-remote%2Fcontainers%2Fnon-root-user%20for%20details.%0AARG%20USERNAME%3Dvscode%0AARG%20USER_UID%3D1000%0AARG%20USER_GID%3D%24USER_UID%0A%0A%23%20Uncomment%20the%20following%20COPY%20line%20and%20the%20corresponding%20lines%20in%20the%20%60RUN%60%20command%20if%20you%20wish%20to%0A%23%20include%20your%20requirements%20in%20the%20image%20itself.%20It%20is%20suggested%20that%20you%20only%20do%20this%20if%20your%0A%23%20requirements%20rarely%20(if%20ever)%20change.%0A%23%20COPY%20requirements.txt%20%2Ftmp%2Fpip-tmp%2F%0A%0A%23%20Configure%20apt%20and%20install%20packages%0ARUN%20apt-get%20update%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20apt-get%20-y%20install%20--no-install-recommends%20apt-utils%20dialog%202%26gt%3B%26amp%3B1%20%5C%0A%20%20%20%20%23%0A%20%20%20%20%23%20Verify%20git%2C%20process%20tools%2C%20lsb-release%20(common%20in%20install%20instructions%20for%20CLIs)%20installed%0A%20%20%20%20%26amp%3B%26amp%3B%20apt-get%20-y%20install%20git%20openssh-client%20less%20iproute2%20procps%20lsb-release%20%5C%0A%20%20%20%20%23%0A%20%20%20%20%23%20Install%20DataScience%20Python%20Libraries%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20pylint%20%5C%20%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20jupyter%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20numpy%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20pandas%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20scipy%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20folium%3D%3D0.2.1%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20matplotlib%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20ipywidgets%26gt%3B%3D7.0.0%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20bqplot%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20nbinteract%3D%3D0.0.12%20%5C%0A%20%20%20%20%23%0A%20%20%20%20%23%20Update%20Python%20environment%20based%20on%20requirements.txt%0A%20%20%20%20%23%23%20%26amp%3B%26amp%3B%20pip%20--disable-pip-version-check%20--no-cache-dir%20install%20-r%20%2Ftmp%2Fpip-tmp%2Frequirements.txt%20%5C%0A%20%20%20%20%23%23%20%26amp%3B%26amp%3B%20rm%20-rf%20%2Ftmp%2Fpip-tmp%20%5C%0A%20%20%20%20%23%0A%20%20%20%20%23%20Create%20a%20non-root%20user%20to%20use%20if%20preferred%20-%20see%20https%3A%2F%2Faka.ms%2Fvscode-remote%2Fcontainers%2Fnon-root-user.%0A%20%20%20%20%26amp%3B%26amp%3B%20groupadd%20--gid%20%24USER_GID%20%24USERNAME%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20useradd%20-s%20%2Fbin%2Fbash%20--uid%20%24USER_UID%20--gid%20%24USER_GID%20-m%20%24USERNAME%20%5C%0A%20%20%20%20%23%20%5BOptional%5D%20Add%20sudo%20support%20for%20the%20non-root%20user%0A%20%20%20%20%26amp%3B%26amp%3B%20apt-get%20install%20-y%20sudo%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20echo%20%24USERNAME%20ALL%3D%5C(root%5C)%20NOPASSWD%3AALL%20%26gt%3B%20%2Fetc%2Fsudoers.d%2F%24USERNAME%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20chmod%200440%20%2Fetc%2Fsudoers.d%2F%24USERNAME%20%5C%0A%20%20%20%20%23%0A%20%20%20%20%23%20Clean%20up%0A%20%20%20%20%26amp%3B%26amp%3B%20apt-get%20autoremove%20-y%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20apt-get%20clean%20-y%20%5C%0A%20%20%20%20%26amp%3B%26amp%3B%20rm%20-rf%20%2Fvar%2Flib%2Fapt%2Flists%2F*%0A%0A%23%20Switch%20back%20to%20dialog%20for%20any%20ad-hoc%20use%20of%20apt-get%0AENV%20DEBIAN_FRONTEND%3Ddialog%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Edecontainer.json%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20file%20confirm%20the%20python%20requirements%20and%20VSCode%20Extensions%20which%20are%20to%20be%20installed.%26nbsp%3B%3CSPAN%3EA%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Edevcontainer.json%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3Bfile%20is%20similar%20to%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Elaunch.json%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3Bfor%20debugging%2C%20but%20designed%20to%20launch%20(or%20attach%20to)%20a%20development%20container%20instead.%20At%20its%20simplest%2C%20all%20you%20need%20is%20a%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3E.devcontainer%2Fdevcontainer.json%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3Bfile%20in%20your%20project%20that%20references%20an%20image%2C%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EDockerfile%3C%2FCODE%3E%3CSPAN%3E%2C%20or%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Edocker-compose.yml%3C%2FCODE%3E%3CSPAN%3E%2C%20and%20a%20few%20properties.%20You%20can%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-adapt%20it%20for%20use%3CSPAN%3E%26nbsp%3Bin%20a%20wide%20variety%20of%20situations.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%7B%0A%20%22name%22%3A%20%22Python%203%22%2C%0A%20%22context%22%3A%20%22..%22%2C%0A%20%22dockerFile%22%3A%20%22Dockerfile%22%2C%0A%20%20%20%20%2F%2F%20Add%20the%20IDs%20of%20extensions%20you%20want%20installed%20when%20the%20container%20is%20created.%0A%20%20%22extensions%22%3A%5B%22ms-python.python%22%5D%2C%0A%20%20%2F%2F%20Confirm%20to%20user%20that%20they%20can%20now%20use%20the%20notebook%20%3D%20change%20background%20to%20white%20and%20insert%20refresh%20now%20file%0A%20%20%20%20%20%22postCreateCommand%22%3A%20%22sudo%20bash%20.%2F.devcontainer%2Fsetup.sh%20%26gt%3B%20~%2Fpost-create.log%22%2C%0A%20%2F%2F%20Set%20*default*%20container%20specific%20settings.json%20values%20on%20container%20create.%0A%20%22settings%22%3A%20%7B%20%0A%20%20%22terminal.integrated.shell.linux%22%3A%20%22%2Fbin%2Fbash%22%2C%0A%20%20%2F%2FPython%20Versions%20%22python.pythonPath%22%3A%20%22%2Fusr%2Flocal%2Fbin%2Fpython%22%2C%0A%20%20%2F%2F%22python.linting.enabled%22%3A%20true%2C%0A%20%20%2F%2F%22python.linting.pylintEnabled%22%3A%20true%2C%0A%20%20%2F%2F%22python.linting.pylintPath%22%3A%20%22%2Fusr%2Flocal%2Fbin%2Fpylint%22%0A%20%20%2F%2FUsing%20Conda%20Python%0A%20%20%22python.pythonPath%22%3A%20%22%2Fopt%2Fconda%2Fbin%2Fpython%22%2C%0A%20%20%22python.linting.enabled%22%3A%20true%2C%0A%20%20%22python.linting.pylintEnabled%22%3A%20true%2C%0A%20%20%22python.linting.pylintPath%22%3A%20%22%2Fopt%2Fconda%2Fbin%2Fpylint%22%2C%0A%20%7D%2C%0A%20%2F%2F%20Use%20'forwardPorts'%20to%20make%20a%20list%20of%20ports%20inside%20the%20container%20available%20locally.%0A%20%2F%2F%20%22forwardPorts%22%3A%20%5B%5D%2C%0A%0A%20%2F%2F%20Use%20'postCreateCommand'%20to%20run%20commands%20after%20the%20container%20is%20created.%0A%20%2F%2F%22postCreateCommand%22%3A%20%22pip%20install%20-r%20requirements.txt%22%2C%0A%0A%20%2F%2F%20Uncomment%20to%20connect%20as%20a%20non-root%20user.%20See%20https%3A%2F%2Faka.ms%2Fvscode-remote%2Fcontainers%2Fnon-root.%0A%20%2F%2F%20%22remoteUser%22%3A%20%22vscode%22%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20VSCode%20Repo%20contains%20various%20container%20deployments%26nbsp%3B-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-dev-containers%2Ftree%2Fmaster%2Fcontainers%26nbsp%3Bthis%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-dev-containers%2Ftree%2Fmaster%2Fcontainers%26nbsp%3Bthis%3C%2FA%3E%20repository%20contains%20a%20set%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Edev%20container%20definitions%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20help%20get%20you%20up%20and%20running%20with%20a%20containerized%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20definitions%20describe%20the%20appropriate%20container%20image%2C%20runtime%20arguments%20for%20starting%20the%20container%2C%20and%20VS%20Code%20extensions%20that%20should%20be%20installed.%20Each%20provides%20a%20container%20configuration%20file%20(%3CCODE%3Edevcontainer.json%3C%2FCODE%3E)%20and%20other%20needed%20files%20that%20you%20can%20drop%20into%20any%20existing%20folder%20as%20a%20starting%20point%20for%20containerizing%20your%20project.%20(The%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-vscode-remote-try-*%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Erepositories%20may%20also%20be%20of%20interest%20if%20you%20are%20looking%20for%20complete%20sample%20projects.)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1105344822%22%20id%3D%22toc-hId-1105344822%22%20id%3D%22toc-hId-1105344822%22%20id%3D%22toc-hId-1105344822%22%3E%3CA%20id%3D%22user-content-before-you-start%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%23before-you-start%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20aria-hidden%3D%22true%22%3E%3C%2FA%3EBefore%20You%20Start%3C%2FH2%3E%0A%3CP%3EThe%20Visual%20Studio%20Code%20Remote%20-%20Containers%20extension%20lets%20you%20use%20a%20Docker%20container%20as%20a%20full-featured%20development%20environment.%20It%20allows%20you%20to%20open%20any%20folder%20inside%20(or%20mounted%20into)%20a%20container%20and%20take%20advantage%20of%20Visual%20Studio%20Code's%20full%20feature%20set.%20A%20.devcontainer%20folder%20in%20your%20project%20tells%20VS%20Code%20how%20to%20access%20(or%20create)%20a%20development%20container%20with%20a%20well-defined%20tool%20and%20runtime%20stack.%20This%20container%20can%20be%20used%20to%20run%20an%20application%20or%20to%20sandbox%20tools%2C%20libraries%2C%20or%20runtimes%20needed%20for%20working%20with%20a%20codebase.%3C%2FP%3E%0A%3CP%3EWorkspace%20files%20are%20mounted%20from%20the%20local%20file%20system%20or%20copied%20or%20cloned%20into%20the%20container.%20Extensions%20are%20installed%20and%20run%20inside%20the%20container%2C%20where%20they%20have%20full%20access%20to%20the%20tools%2C%20platform%2C%20and%20file%20system.%20This%20means%20that%20you%20can%20seamlessly%20switch%20your%20entire%20development%20environment%20just%20by%20connecting%20to%20a%20different%20container.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1094841718%22%20id%3D%22toc-hId-1094841718%22%20id%3D%22toc-hId-1094841718%22%20id%3D%22toc-hId-1094841718%22%3E%3CA%20id%3D%22user-content-running-the-container-within-vscode-on-windows-mac-or-linux%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%23running-the-container-within-vscode-on-windows-mac-or-linux%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20aria-hidden%3D%22true%22%3E%3C%2FA%3ERunning%20the%20container%20within%20VSCode%20on%20Windows%2C%20Mac%20or%20Linux%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId-1785403192%22%20id%3D%22toc-hId-1785403192%22%20id%3D%22toc-hId-1785403192%22%20id%3D%22toc-hId-1785403192%22%3E%3CA%20id%3D%22user-content-the-following-requirements-are-installed-as-part-of-the-container-build%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%23the-following-requirements-are-installed-as-part-of-the-container-build%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20aria-hidden%3D%22true%22%3E%3C%2FA%3EThe%20following%20Requirements%20are%20installed%20as%20part%20of%20the%20container%20build%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3Ejupyter%3C%2FLI%3E%0A%3CLI%3Enumpy%3C%2FLI%3E%0A%3CLI%3Epandas%3C%2FLI%3E%0A%3CLI%3Escipy%3C%2FLI%3E%0A%3CLI%3Efolium%3D%3D0.2.1%3C%2FLI%3E%0A%3CLI%3Ematplotlib%3C%2FLI%3E%0A%3CLI%3Eipywidgets%26gt%3B%3D7.0.0%3C%2FLI%3E%0A%3CLI%3Ebqplot%3C%2FLI%3E%0A%3CLI%3Enbinteract%3D%3D0.0.12%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EYou%20can%20run%20this%20container%20from%20VSCode%20locally%20see%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fremote%2Fcontainers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fremote%2Fcontainers%3C%2FA%3E.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--22051271%22%20id%3D%22toc-hId--22051271%22%20id%3D%22toc-hId--22051271%22%20id%3D%22toc-hId--22051271%22%3E%3CA%20id%3D%22user-content-quick-start-installation%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%23quick-start-installation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20aria-hidden%3D%22true%22%3E%3C%2FA%3EQuick%20Start%20Installation%3C%2FH2%3E%0A%3CP%3ETo%20get%20started%2C%20follow%20these%20steps%3A%3C%2FP%3E%0A%3CP%3EInstall%20and%20configure%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Docker%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20your%20operating%20system.%3C%2FP%3E%0A%3CP%3EWindows%20%2F%20macOS%3A%3C%2FP%3E%0A%3CP%3EInstall%20Docker%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Desktop%20for%20Windows%2FMac%3C%2FP%3E%0A%3CP%3ERight-click%20on%20the%20Docker%20taskbar%20item%20and%20update%20Settings%20%2F%20Preferences%20%26gt%3B%20Shared%20Drives%20%2F%20File%20Sharing%20with%20any%20source%20code%20locations%20you%20want%20to%20open%20in%20a%20container.%20If%20you%20run%20into%20trouble%2C%20see%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Docker%20Desktop%20for%20Windows%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etips%20on%20avoiding%20common%20problems%20with%20sharing.%3C%2FP%3E%0A%3CP%3ELinux%3A%3C%2FP%3E%0A%3CP%3EFollow%20the%20official%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-install%20instructions%20for%20Docker%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ECE%2FEE%20for%20your%20distribution.%20If%20you%20are%20using%20Docker%20Compose%2C%20follow%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Docker%20Compose%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edirections%20as%20well.%3C%2FP%3E%0A%3CP%3EAdd%20your%20user%20to%20the%20docker%20group%20by%20using%20a%20terminal%20to%20run%3A%20sudo%20usermod%20-aG%20docker%20%24USER%3C%2FP%3E%0A%3CP%3ESign%20out%20and%20back%20in%20again%20so%20your%20changes%20take%20effect.%3C%2FP%3E%0A%3CP%3EInstall%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Visual%20Studio%20Code%3C%2FP%3E%0A%3CP%3EInstall%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Remote%20Development%20extension%20pack%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1829505734%22%20id%3D%22toc-hId--1829505734%22%20id%3D%22toc-hId--1829505734%22%20id%3D%22toc-hId--1829505734%22%3E%3CA%20id%3D%22user-content-loading-the-docker-container-in-visual-studio-code%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%23loading-the-docker-container-in-visual-studio-code%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20aria-hidden%3D%22true%22%3E%3C%2FA%3ELoading%20the%20Docker%20container%20in%20Visual%20Studio%20Code%3C%2FH2%3E%0A%3CP%3ELet's%20start%20by%20using%20a%20sample%20project%20to%20try%20things%20out.%3C%2FP%3E%0A%3CP%3EClone%20one%20of%20the%20repository%3C%2FP%3E%0A%3CP%3EStart%20VS%20Code%20and%20click%20on%20the%20quick%20actions%20Status%20Bar%20item%20in%20the%20lower%20left%20corner%20of%20the%20window.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLee%20Stott_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22QuickAction.png%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F180602iADA59EADECECBB7D%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20title%3D%22QuickAction.png%22%20alt%3D%22QuickAction.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EQuick%20actions%20Status%20bar%20item%3C%2FP%3E%0A%3CP%3ESelect%20Remote-Containers%3A%20Open%20Folder%20in%20Container...%20from%20the%20command%20list%20that%20appears%2C%20and%20open%20the%20root%20folder%20of%20the%20project%20you%20just%20cloned.%3C%2FP%3E%0A%3CP%3EThe%20window%20will%20then%20reload%2C%20but%20since%20the%20container%20does%20not%20exist%20yet%2C%20VS%20Code%20will%20create%20one.%20This%20may%20take%20some%20time%2C%20and%20a%20progress%20notification%20will%20provide%20status%20updates.%20Fortunately%2C%20this%20step%20isn't%20necessary%20the%20next%20time%20you%20open%20the%20folder%20since%20the%20container%20will%20already%20exist.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLee%20Stott_2%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22devcontainernotification.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F180603i43FB7C5BB5B6BE0E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22devcontainernotification.png%22%20alt%3D%22devcontainernotification.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EDev%20Container%20Progress%20Notification%3C%2FP%3E%0A%3CP%3EAfter%20the%20container%20is%20built%2C%20VS%20Code%20automatically%20connects%20to%20it%20and%20maps%20the%20project%20folder%20from%20your%20local%20file%20system%20into%20the%20container.%20Check%20out%20the%20Things%20to%20try%20section%20of%20README.md%20in%20the%20repository%20you%20cloned%20to%20see%20what%20to%20do%20next.%3C%2FP%3E%0A%3CP%3ETip%3A%20Want%20to%20use%20a%20remote%20Docker%20host%3F%20See%20the%20Advanced%20Containers%20article%20for%20details%20on%20setup%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-658007099%22%20id%3D%22toc-hId-658007099%22%20id%3D%22toc-hId-658007099%22%20id%3D%22toc-hId-658007099%22%3E%3CA%20id%3D%22user-content-running-the-container-in-visual-studio-online-browser-experience%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fleestott%2Fintro-DataScience%23running-the-container-in-visual-studio-online-browser-experience%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20aria-hidden%3D%22true%22%3E%3C%2FA%3ERunning%20the%20container%20in%20Visual%20Studio%20CodeSpaces%20(Browser%20Experience)%3C%2FH2%3E%0A%3CP%3EUtilise%20the%20container%20in%20Visual%20Studio%20CodeSpaces%3CSPAN%3E%20%3CA%20href%3D%22https%3A%2F%2Fvisualstudio.microsoft.com%2Fservices%2Fvisual-studio-codespaces%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fvisualstudio.microsoft.com%2Fservices%2Fvisual-studio-codespaces%2F%3C%2FA%3E%3C%2FSPAN%3Eyou'll%20need%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EA%20Microsoft%20Azure%20subscription.%20If%20you%20don't%20already%20have%20one%2C%20you%20can%20sign%20up%20for%20a%20free%20trial%20at%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fvscode-remote%2Fdownload%2Fextension%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eor%20a%20Student%20Subscription%20at%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fazureforstudents%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fazureforstudents%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3EA%20Visual%20Studio%20Online%20environment.%20This%20provides%20a%20hosted%20instance%20of%20Visual%20Studio%20Code%2C%20in%20which%20you'll%20be%20able%20to%20run%20the%20notebooks%20for%20the%20lab%20exercises.%20To%20set%20up%20this%20environment%3A%0A%3COL%3E%0A%3CLI%3EBrowse%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Fonline.visualstudio.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fonline.visualstudio.com%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EClick%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EGet%20Started%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ESign%20in%20using%20the%20Microsoft%20account%20associated%20with%20your%20Azure%20subscription.%3C%2FLI%3E%0A%3CLI%3EClick%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECreate%20environment%3C%2FSTRONG%3E.%20If%20you%20don't%20already%20have%20a%20Visual%20Studio%20Online%20plan%2C%20create%20one.%20This%20is%20used%20to%20track%20resource%20utlization%20by%20your%20Visual%20Studio%20Online%20environments.%20Then%20create%20an%20environment%20with%20the%20following%20settings%3A%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EEnvironment%20Name%3C%2FSTRONG%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EA%20name%20for%20your%20environment%20-%20for%20example%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eintro-Datascience%3C%2FSTRONG%3E.%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EGit%20Repository%3C%2FSTRONG%3E%3A%20leestott%2Fintro-Datascience%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EInstance%20Type%3C%2FSTRONG%3E%3A%20Standard%20(Linux)%204%20cores%2C%208GB%20RAM%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESuspend%20idle%20environment%20after%3C%2FSTRONG%3E%3A%20120%20minutes%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EWait%20for%20the%20environment%20to%20be%20created%2C%20and%20then%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EConnect%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20connect%20to%20it.%20This%20will%20open%20a%20browser-based%20instance%20of%20Visual%20Studio%20Code.%3C%2FLI%3E%0A%3CLI%3EWait%20for%20a%20minute%20or%20so%20while%20the%20environment%20is%20set%20up%20for%20you.%20It%20might%20look%20like%20nothing%20is%20happening%2C%20but%20in%20the%20background%20we%20are%20installing%20some%20extensions%20that%20you%20will%20use%20in%20the%20labs.%3C%2FLI%3E%0A%3CLI%3ECopy%20your%20notebooks%20files%20and%20data%20and%20undertake%20your%20learning%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CSTRONG%3ETip%3C%2FSTRONG%3E%3A%20you%20can%20change%20the%20color%20scheme%20back%20to%20a%20dark%20background%20if%20you%20prefer%20-%20just%20click%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%E2%9A%99%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eicon%20at%20the%20bottom%20left%20and%20select%20a%20new%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EColor%20Theme%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1264988%22%20slang%3D%22en-US%22%3E%3CP%3EA%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Edevelopment%20container%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20a%20running%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Docker%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Econtainer%20with%20a%20well-defined%20tool%2Fruntime%20stack%20and%20its%20prerequisites.%20The%20Remote%20-%20Containers%20extension%20in%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-ERR%3AREF-NOT-FOUND-Remote%20Development%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eextension%20pack%20allows%20you%20to%20open%20any%20folder%20mounted%20into%20or%20inside%20a%20dev%20container%20and%20take%20advantage%20of%20VS%20Code's%20full%20development%20feature%20set.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1264988%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EClassroom%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Econtainer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edevelopment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocker%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eeducator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efaculty%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELabs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eteaching%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evisual%20studio%20online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evscode%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1483240%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Visual%20Studio%20Code%20from%20a%20docker%20image%20locally%20or%20remotely%20via%20VS%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1483240%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20following%20Academic%20Paper%20was%20presented%20at%20this%20year%20ITICSE%20conference%2C%26nbsp%3BUsing%20DevContainers%20to%20Standardize%20Student%20Development%3CBR%20%2F%3EEnvironments%3A%20An%20Experience%20Report%20by%26nbsp%3BSander%20Valstar%2C%20William%20G.%20Griswold%2C%20and%20Leo%20Porter%20from%20University%20of%20California%2C%20San%20Diego%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EABSTRACT%3CBR%20%2F%3EIn%20computer%20science%20classes%20it%20can%20be%20a%20challenge%20to%20ensure%20every%20student%20has%20a%20functioning%20development%20environment.%20Running%20preconfigured%20servers%20that%20provide%20students%20with%20remote%20access%20can%20help%20mitigate%20most%20of%20these%20setup%20issues%2C%20however%20they%20can%20also%20introduce%20new%20limitations%20of%20their%20own.%20We%20propose%20using%20DevContainers%20to%20overcome%20the%20local%20machine%20setup%20difficulties%20for%20the%20students.%20DevContainers%20allow%20the%20instructional%20staff%20to%20provision%20a%20development%20environment%20(a%20Docker%20image)%20with%20all%20the%20correct%20software%20versions%20pre-configured.%20This%20development%20environment%20can%20be%20used%20on%20any%20major%20OS%20through%20Docker.%20Moreover%2C%20through%20this%20DevContainer%20configuration%2C%20Microsoft%20Visual%20Studio%20Code%20can%20integrate%20seamlessly%20with%20the%20Docker%20container%20to%20provide%20an%20experience%20for%20the%20user%20that%20is%20practically%20the%20same%20as%20working%20on%20the%20native%20OS.%20This%20work%20examines%20the%20value%20of%20employing%20a%20DevContainer%20setup%20in%20an%20Advanced%20Data%20Structures%20course%20and%20provides%20details%20for%20those%20interested%20in%20using%20DevContainers%20in%20their%20courses.%20%3CBR%20%2F%3E%3CBR%20%2F%3ECONCLUSION%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20this%20study%2C%20we%20found%20that%20the%20majority%20of%20students%20used%20our%20DevContainer%20setup%20and%20generally%20viewed%20it%20favorably%E2%80%94recommending%20faculty%20use%20it%20in%20other%20courses.%20From%20the%20instructor%E2%80%99s%20point%20of%20view%20there%20are%20several%20advantages.%20For%20instance%2C%20there%20is%20no%20need%20to%20communicate%20with%20the%20maintainers%20of%20the%20Linux%20server%20to%20configuring%20the%20machines.%20This%20offers%20more%20control%20to%20the%20instructor%20about%20the%20development%20environment%20the%20students%20use%2C%20which%20leads%20to%20faster%20turnaround%20times%20for%20improvements%20to%20the%20programming%20assignments.%20Another%20benefit%20is%20that%20the%20DevContainer%E2%80%99s%20Docker%20configuration%20can%20be%20used%20almost%20without%20change%20on%20auto%20grading%20systems%20such%20as%20Gradescope%20%5B4%5D.%20This%20ensures%20that%20there%20will%20be%20no%20%E2%80%9Cit%20works%20on%20my%20machine%E2%80%9D-issues%20with%20the%20auto%20grader.%20Furthermore%2C%20the%20DevContainer%20allows%20for%20easy%20sharing%20of%20programming%20assignments%20between%20instructors%20as%20the%20tooling%20infrastructure%20is%20shipped%20with%20the%20assignment.%20This%20could%20be%20useful%20for%20programming%20assignments%20sharing%20platforms%20such%20as%20the%20SIGCSE%20symposium%E2%80%99s%20Nifty%20Assignments%20%5B9%5D.%20Finally%2C%20DevContainers%20are%20not%20a%20research%20or%20hobby%20project%2C%20but%20a%20professional%20tool%20supported%20by%20Microsoft.%20Hence%2C%20they%20can%20be%20expected%20to%20continue%20to%20be%20usable%20and%20supported%20in%20the%20future.%20There%20remain%20some%20barriers%20to%20using%20the%20DevContainer%2C%20specifically%20Docker%20can%20be%20a%20hurdle%20to%20set%20up%20for%20the%20first%20time.%20However%2C%20we%20suspect%20that%20this%20is%20only%20an%20issue%20in%20the%20first%20course%20in%20the%20curriculum%20that%20introduces%20DevContainers%20to%20the%20students%20as%20for%20following%20courses%20students%20will%20come%20into%20the%20course%20with%20a%20working%20Docker%20configuration.%20Moreover%2C%20we%20find%20that%20despite%20the%20initial%20barrier%20of%20setting%20up%20the%20DevContainer%20the%20vast%20majority%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can%20download%20the%20paper%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdl.acm.org%2Fdoi%2Fpdf%2F10.1145%2F3341525.3387424%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdl.acm.org%2Fdoi%2Fpdf%2F10.1145%2F3341525.3387424%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

VisualStudioOnline.PNG

 

 

Utilising Custom Container builds to spin up a custom Visual Studio Code Environment for use on premise with Visual Studio Code or Online with Visual Studio Online

Using Visual Studio Code

Please see the following  repository contains a Visual Studio Code container build and instructions on deployment https://github.com/leestott/intro-DataScience

 

Using a Devcontainer custom docker image within the rep is a folder .devcontainer 

Within .devcontainer are two file

 

Dockerfile - docker installation file

devcontainer.json - Json file for the container build 

 

DockerFile - this file is the build of the docker image for the dev environment and includes things like python library installations

 

 

 

 

#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

#Python Versions
#FROM python:3
#Python Anaconda
FROM continuumio/anaconda3

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID

# Uncomment the following COPY line and the corresponding lines in the `RUN` command if you wish to
# include your requirements in the image itself. It is suggested that you only do this if your
# requirements rarely (if ever) change.
# COPY requirements.txt /tmp/pip-tmp/

# Configure apt and install packages
RUN apt-get update \
    && apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
    #
    # Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
    && apt-get -y install git openssh-client less iproute2 procps lsb-release \
    #
    # Install DataScience Python Libraries
    && pip --disable-pip-version-check --no-cache-dir install pylint \ 
    && pip --disable-pip-version-check --no-cache-dir install jupyter \
    && pip --disable-pip-version-check --no-cache-dir install numpy \
    && pip --disable-pip-version-check --no-cache-dir install pandas \
    && pip --disable-pip-version-check --no-cache-dir install scipy \
    && pip --disable-pip-version-check --no-cache-dir install folium==0.2.1 \
    && pip --disable-pip-version-check --no-cache-dir install matplotlib \
    && pip --disable-pip-version-check --no-cache-dir install ipywidgets>=7.0.0 \
    && pip --disable-pip-version-check --no-cache-dir install bqplot \
    && pip --disable-pip-version-check --no-cache-dir install nbinteract==0.0.12 \
    #
    # Update Python environment based on requirements.txt
    ## && pip --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
    ## && rm -rf /tmp/pip-tmp \
    #
    # Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
    && groupadd --gid $USER_GID $USERNAME \
    && useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
    # [Optional] Add sudo support for the non-root user
    && apt-get install -y sudo \
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
    && chmod 0440 /etc/sudoers.d/$USERNAME \
    #
    # Clean up
    && apt-get autoremove -y \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/*

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog

 

 

 

 

decontainer.json 

 

This file confirm the python requirements and VSCode Extensions which are to be installed. devcontainer.json file is similar to launch.json for debugging, but designed to launch (or attach to) a development container instead. At its simplest, all you need is a .devcontainer/devcontainer.json file in your project that references an image, Dockerfile, or docker-compose.yml, and a few properties. You can adapt it for use in a wide variety of situations.

 

 

 

 

{
	"name": "Python 3",
	"context": "..",
	"dockerFile": "Dockerfile",
    // Add the IDs of extensions you want installed when the container is created.
		"extensions":["ms-python.python"],
		// Confirm to user that they can now use the notebook = change background to white and insert refresh now file
	    "postCreateCommand": "sudo bash ./.devcontainer/setup.sh > ~/post-create.log",
	// Set *default* container specific settings.json values on container create.
	"settings": { 
		"terminal.integrated.shell.linux": "/bin/bash",
		//Python Versions "python.pythonPath": "/usr/local/bin/python",
		//"python.linting.enabled": true,
		//"python.linting.pylintEnabled": true,
		//"python.linting.pylintPath": "/usr/local/bin/pylint"
		//Using Conda Python
		"python.pythonPath": "/opt/conda/bin/python",
		"python.linting.enabled": true,
		"python.linting.pylintEnabled": true,
		"python.linting.pylintPath": "/opt/conda/bin/pylint",
	},
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [],

	// Use 'postCreateCommand' to run commands after the container is created.
	//"postCreateCommand": "pip install -r requirements.txt",

	// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
	// "remoteUser": "vscode"
}

 

 

 

 

 

The following VSCode Repo contains various container deployments https://github.com/microsoft/vscode-dev-containers/tree/master/containers this repository contains a set of dev container definitions to help get you up and running with a containerized environment.

 

The definitions describe the appropriate container image, runtime arguments for starting the container, and VS Code extensions that should be installed. Each provides a container configuration file (devcontainer.json) and other needed files that you can drop into any existing folder as a starting point for containerizing your project. (The vscode-remote-try-* repositories may also be of interest if you are looking for complete sample projects.)

 

Before You Start

The Visual Studio Code Remote - Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set. A .devcontainer folder in your project tells VS Code how to access (or create) a development container with a well-defined tool and runtime stack. This container can be used to run an application or to sandbox tools, libraries, or runtimes needed for working with a codebase.

Workspace files are mounted from the local file system or copied or cloned into the container. Extensions are installed and run inside the container, where they have full access to the tools, platform, and file system. This means that you can seamlessly switch your entire development environment just by connecting to a different container.

Running the container within VSCode on Windows, Mac or Linux

The following Requirements are installed as part of the container build

  • jupyter
  • numpy
  • pandas
  • scipy
  • folium==0.2.1
  • matplotlib
  • ipywidgets>=7.0.0
  • bqplot
  • nbinteract==0.0.12

You can run this container from VSCode locally see https://code.visualstudio.com/docs/remote/containers.

Quick Start Installation

To get started, follow these steps:

Install and configure Docker for your operating system.

Windows / macOS:

Install Docker Desktop for Windows/Mac

Right-click on the Docker taskbar item and update Settings / Preferences > Shared Drives / File Sharing with any source code locations you want to open in a container. If you run into trouble, see Docker Desktop for Windows tips on avoiding common problems with sharing.

Linux:

Follow the official install instructions for Docker CE/EE for your distribution. If you are using Docker Compose, follow the Docker Compose directions as well.

Add your user to the docker group by using a terminal to run: sudo usermod -aG docker $USER

Sign out and back in again so your changes take effect.

Install Visual Studio Code

Install the Remote Development extension pack

Loading the Docker container in Visual Studio Code

Let's start by using a sample project to try things out.

Clone one of the repository

Start VS Code and click on the quick actions Status Bar item in the lower left corner of the window. 

 

QuickAction.png

Quick actions Status bar item

Select Remote-Containers: Open Folder in Container... from the command list that appears, and open the root folder of the project you just cloned.

The window will then reload, but since the container does not exist yet, VS Code will create one. This may take some time, and a progress notification will provide status updates. Fortunately, this step isn't necessary the next time you open the folder since the container will already exist.

 

devcontainernotification.png

Dev Container Progress Notification

After the container is built, VS Code automatically connects to it and maps the project folder from your local file system into the container. Check out the Things to try section of README.md in the repository you cloned to see what to do next.

Tip: Want to use a remote Docker host? See the Advanced Containers article for details on setup

 

Running the container in Visual Studio CodeSpaces (Browser Experience)

Utilise the container in Visual Studio CodeSpaces https://visualstudio.microsoft.com/services/visual-studio-codespaces/you'll need the following:

  • A Microsoft Azure subscription. If you don't already have one, you can sign up for a free trial at https://azure.microsoft.com or a Student Subscription at https://aka.ms/azureforstudents.
  • A Visual Studio Online environment. This provides a hosted instance of Visual Studio Code, in which you'll be able to run the notebooks for the lab exercises. To set up this environment:
    1. Browse to https://online.visualstudio.com
    2. Click Get Started.
    3. Sign in using the Microsoft account associated with your Azure subscription.
    4. Click Create environment. If you don't already have a Visual Studio Online plan, create one. This is used to track resource utlization by your Visual Studio Online environments. Then create an environment with the following settings:
      • Environment Name: A name for your environment - for example, intro-Datascience.
      • Git Repository: leestott/intro-Datascience
      • Instance Type: Standard (Linux) 4 cores, 8GB RAM
      • Suspend idle environment after: 120 minutes
    5. Wait for the environment to be created, and then click Connect to connect to it. This will open a browser-based instance of Visual Studio Code.
    6. Wait for a minute or so while the environment is set up for you. It might look like nothing is happening, but in the background we are installing some extensions that you will use in the labs.
    7. Copy your notebooks files and data and undertake your learning

Tip: you can change the color scheme back to a dark background if you prefer - just click the  icon at the bottom left and select a new Color Theme.

1 Comment
Microsoft

The following Academic Paper was presented at this year ITICSE conference, Using DevContainers to Standardize Student Development
Environments: An Experience Report by Sander Valstar, William G. Griswold, and Leo Porter from University of California, San Diego 

ABSTRACT
In computer science classes it can be a challenge to ensure every student has a functioning development environment. Running preconfigured servers that provide students with remote access can help mitigate most of these setup issues, however they can also introduce new limitations of their own. We propose using DevContainers to overcome the local machine setup difficulties for the students. DevContainers allow the instructional staff to provision a development environment (a Docker image) with all the correct software versions pre-configured. This development environment can be used on any major OS through Docker. Moreover, through this DevContainer configuration, Microsoft Visual Studio Code can integrate seamlessly with the Docker container to provide an experience for the user that is practically the same as working on the native OS. This work examines the value of employing a DevContainer setup in an Advanced Data Structures course and provides details for those interested in using DevContainers in their courses.

CONCLUSION
In this study, we found that the majority of students used our DevContainer setup and generally viewed it favorably—recommending faculty use it in other courses. From the instructor’s point of view there are several advantages. For instance, there is no need to communicate with the maintainers of the Linux server to configuring the machines. This offers more control to the instructor about the development environment the students use, which leads to faster turnaround times for improvements to the programming assignments. Another benefit is that the DevContainer’s Docker configuration can be used almost without change on auto grading systems such as Gradescope [4]. This ensures that there will be no “it works on my machine”-issues with the auto grader. Furthermore, the DevContainer allows for easy sharing of programming assignments between instructors as the tooling infrastructure is shipped with the assignment. This could be useful for programming assignments sharing platforms such as the SIGCSE symposium’s Nifty Assignments [9]. Finally, DevContainers are not a research or hobby project, but a professional tool supported by Microsoft. Hence, they can be expected to continue to be usable and supported in the future. There remain some barriers to using the DevContainer, specifically Docker can be a hurdle to set up for the first time. However, we suspect that this is only an issue in the first course in the curriculum that introduces DevContainers to the students as for following courses students will come into the course with a working Docker configuration. Moreover, we find that despite the initial barrier of setting up the DevContainer the vast majority 

You can download the paper here https://dl.acm.org/doi/pdf/10.1145/3341525.3387424