Skip to content

Instantly share code, notes, and snippets.

@mihkell
Last active December 12, 2018 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihkell/f6207c54aa70a5ee84684ed456d772ba to your computer and use it in GitHub Desktop.
Save mihkell/f6207c54aa70a5ee84684ed456d772ba to your computer and use it in GitHub Desktop.
FloydHub workflow supporting script. Allows me to run code on floydhub while developing in jupyter notebook and with low power computer.
notebook_name=$1
project_name=$2
hostname=$3
if [ $(hostname) == $hostname ];
then
echo "worked"
clear
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace $notebook_name.ipynb
floyd run --gpu --env pytorch-0.4.0 --follow "jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 $notebook_name.ipynb"
floyd data clone dasmus/projects/$project_name/
floyd delete $project_name -y
open $notebook_name.html
else
echo "nothing happened!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment