Last active
December 12, 2018 21:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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