Skip to content

Commit

Permalink
Merge pull request #145 from innovationOUtside/wip
Browse files Browse the repository at this point in the history
Vagrantfile update and a couple of typos
  • Loading branch information
psychemedia committed Feb 1, 2021
2 parents fb1327a + 3ddf767 commit 8cde2ec
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 121 deletions.
14 changes: 13 additions & 1 deletion .VM/monolithic_build.sh
Expand Up @@ -132,4 +132,16 @@ apt-get autoremove -y
apt-get clean -y
apt-get autoclean -y
rm -rf /var/lib/apt/lists/*
echo "...tidy up done"
echo "...tidy up done"

# Content stash
echo "Stash content.."
mkdir -p /opt/contentStash
#Bake test notebooks into the VM
cp -r content/ /opt/contentStash
cp -r $BUILDDIR/backgrounds /opt/contentStash/nb_backgrounds
# Hack
mkdir -p /nb_backgrounds
chown oustudent /nb_backgrounds
chmod u+rw /nb_backgrounds
echo "...content stashed."
Expand Up @@ -578,7 +578,7 @@
"activity": true
},
"source": [
"### 1.3.4 Activity — Predicitng a robot's behaviour from it's program\n",
"### 1.3.4 Activity — Predicting a robot's behaviour from its program\n",
"\n",
"Suppose that a simulated robot starts pointing towards the top of the screen. If you download and run the program in the code cell below, will the robot turn towards the right or left while executing the sequence of commands shown?\n",
"\n",
Expand Down
Expand Up @@ -144,7 +144,7 @@
]
},
"source": [
"*Large social networking services such as Facebook train classifiers on uploaded images and tags to identify people in uploaded photographs. Whenever you tag people in a photograph uploaded to such services, you are helping train the classifiers operated by those compaies.*"
"*Large social networking services such as Facebook train classifiers on uploaded images and tags to identify people in uploaded photographs. Whenever you tag people in a photograph uploaded to such services, you are helping train the classifiers operated by those companies.*"
]
},
{
Expand Down
9 changes: 0 additions & 9 deletions content/99. Technical Appendices/Untitled.md

This file was deleted.

Binary file removed content/99. Technical Appendices/example_mnist_4.png
Binary file not shown.
103 changes: 0 additions & 103 deletions production/Vagrantfile

This file was deleted.

6 changes: 3 additions & 3 deletions production/Vagrantfile.build
@@ -1,8 +1,8 @@
#Vagrantfile for building machine from build scripts

#Set the environment variable from the command line used to call vagrant for:
# - password for authenticated notebook services (default is: tm129)
#export VM_NB_TMP_PASS="tm129"
# - password for authenticated notebook services (default is: letmein)
#export VM_NB_TMP_PASS="letmein"


# Change the path in the SHARED_FOLDER_PATH setting below (default: "."):
Expand Down Expand Up @@ -65,4 +65,4 @@ Vagrant.configure("2") do |config|
SH


end
end
9 changes: 6 additions & 3 deletions production/Vagrantfile.student
Expand Up @@ -88,16 +88,19 @@ Vagrant.configure("2") do |config|

config.vm.provision :shell, :inline => <<-SH

#if [ ! -f /vagrant/.firstrun_nbcopy.done ]; then
if [ ! -f /vagrant/.firstrun_nbcopy.done ]; then
# Trust notebooks in immediate child directories of notebook directory
#files=(`find /opt/notebooks/* -maxdepth 2 -name "*.ipynb"`)
#if [ ${#files[@]} -gt 0 ]; then
# jupyter trust /opt/notebooks/*.ipynb;
# jupyter trust /opt/notebooks/*/*.ipynb;
#fi
#cp -r /opt/notebooks/. /vagrant/notebooks
#touch /vagrant/.firstrun_nbcopy.done
#fi
cp -ra /opt/contentStash/. /vagrant/notebooks
chown -R oustudent /vagrant/notebooks/
jupyter trust /vagrant/notebooks/*/*/*.ipynb
touch /vagrant/.firstrun_nbcopy.done
fi
SH

end

0 comments on commit 8cde2ec

Please sign in to comment.