Skip to content

Instantly share code, notes, and snippets.

@ThaddParker
Last active June 12, 2019 16:40
Show Gist options
  • Save ThaddParker/cdfbeaf3ceba3bb35c1763616dbe9382 to your computer and use it in GitHub Desktop.
Save ThaddParker/cdfbeaf3ceba3bb35c1763616dbe9382 to your computer and use it in GitHub Desktop.
Machine Learning Development Box baseline
Set-ExplorerOptions -showProtectedOSFiles -showFileExtensions -showHiddenFilesFolderDrives
Enable-RemoteDesktop
#$Boxstarter.RebootOK=$true
Update-ExecutionPolicy Unrestricted
Disable-InternetExplorerESC
Install-WindowsUpdate -AcceptEula
#if(Test-PendingReboot){Invoke-Reboot}
#generate a new profile for refreshing
new-item -path $profile -itemtype file
cinst -y chocolatey
cinst -y azurepowershell
cinst -y python3 --params "/InstallDir:C:\Tools\Python3"
cinst -y google-chrome-x64
cinst -y sysinternals
cinst -y git
cinst -y git.install
cinst -y notepadplusplus.install
cinst -y vscode
cinst -y azure-cli
refreshenv
cmd
refreshenv
az extension add -s https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-release/Preview/E7501C02541B433786111FE8E140CAA1/azure_cli_ml-0.1.68-py2.py3-none-any.whl --pip-extra-index-urls https://azuremlsdktestpypi.azureedge.net/sdk-release/Preview/E7501C02541B433786111FE8E140CAA1
exit
cinst -y anaconda3
cinst -y rsat
cinst -y sql-server-management-studio
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles)\\Google\\Chrome\\Application\\Chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles)\\Notepad++\\notepad++.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles)\\Microsoft VS Code\\bin\\code.exe"
#configure the environment
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Tools\Anaconda3;C:\Tools\Anaconda3\Scripts;C:\Tools\Anaconda3\bin", [EnvironmentVariableTarget]::Machine)
refreshenv
mkdir F:\Sources\Repos
# installs vs code extensions into a common directory
code --extensions-dir "C:\Tools\VSCodeExtensions"
code --install-extension donjayamanne.githistory
code --install-extension eamodio.gitlens
code --install-extension eg2.vscode-npm-script
code --install-extension felipecaputo.git-project-manager
code --install-extension humao.rest-client
code --install-extension ms-mssql.mssql
code --install-extension ms-python.anaconda-extension-pack
code --install-extension ms-python.python
code --install-extension ms-toolsai.vscode-ai
code --install-extension ms-vscode.azure-account
code --install-extension ms-vscode.azurecli
code --install-extension ms-vscode.PowerShell
code --install-extension ms-vsts.team
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension PeterJausovec.vscode-docker
code --install-extension redhat.vscode-yaml
code --install-extension remcoros.startanyshell
code --install-extension robertohuertasm.vscode-icons
code --install-extension Tyriar.shell-launcher
# this could be a docker container for layered development
# now to get ourselves started
# note that the azure-cli and the azureml cli
conda upgrade conda
python -m pip install --upgrade pip
pip install azure-cli
#setup ML Dev environment
conda create -y --name MLAthenaDev Python=3.7 cython numpy matplotlib seaborn pytest statsmodels pandas pyodbc scikit-learn joblib scipy ipykernel psutil
#you have to have a cmd prompt here
cmd
activate MLAthenaDev
pip install azure-cli azureml-sdk seasonal
python -m pip install --upgrade pip
az extension add -s https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-release/Preview/E7501C02541B433786111FE8E140CAA1/azure_cli_ml-0.1.68-py2.py3-none-any.whl --pip-extra-index-urls https://azuremlsdktestpypi.azureedge.net/sdk-release/Preview/E7501C02541B433786111FE8E140CAA1
deactivate
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment