靈感來自fast.ai的aws-alias.sh的Azure虛擬機的包裝腳本
希望這很有用。
根據您的環境編輯azure-env.sh
。
# set environment variables and aliases (you MUST do this before executing other commands)
source azure-env.sh
source azure-alias.sh
# start vm
azure-start
# get ip address
azure-ip
# ssh login
azure-ssh
# start jupyter notebook server from local machine
azure-start-jupyter
# open jupyter notebook on local machine
./azure-open-jupyter.sh
# stop and deallocate
azure-stop
麻省理工學院