appendix running jupyter notebooks on an ec gpu instance in case you aren' accustomed to using viremember that you need to press to begin inserting content when you're finishedpress escenter :wqand press enter to quit vi and save your changes (:wq stands for write-quitnote installing keras you're almost ready to start using jupyter but firstyou need to update keras version of keras is preinstalled on the amibut it may not necessarily be up to date on the remote instancerun this commandsudo pip install keras --upgrade because you'll probably use python (the notebooks provided with this book use python )you should also update keras using pip sudo pip install keras --upgrade if there' an existing keras configuration file on the instance (there shouldn' bebut the ami may have changed since wrote this)you should delete itjust in case keras will re-create standard configuration file when it' launched for the first time if the following code snippet returns an error saying that the file doesn' existyou can ignore itrm - ~keras/keras json setting up local port forwarding in shell on your local machine (not the remote instance)start forwarding your local port (the https portto port of the remote instancesudo ssh - awskeys pem - local_port:local_machine:remote_port remote_machine in my caseit would look like the followingsudo ssh - awskeys pem - : ubuntu@ec- - compute- amazonaws com using jupyter from your local browser on the remote instanceclone the github repository containing the jupyter notebooks associated with this bookgit clone cd deep-learning-with-python-notebooks start jupyter notebook by running this commandstill on the remote instancejupyter notebook thenin your local browsernavigate to the local address you're forwarding to the remote notebook process (or you'll get an ssl error licensed to