![]() You would have been prompted to create a key pair during your EC2 setup process. Now it’s time to jump in and set up ourselves up.īefore we move on, make a note of the public DNS of your instance. You can also restrict it to certain IPs if you know where you’re going to access the server from.Īwesome! We now have our own EC2 server metaphorically spinning away in the cloud. I added an extra rule allowing connections on port 8888, since that’s the port we’re going to use for the Jupyter notebook. Next thing to consider is the security groups. t2.micro is the best-performing type within the free-tier, so I recommend going with that. You’ll have to pick your Linux distribution (I chose the default Amazon Linux) and your instance type. Navigate your way to the EC2 services page and create your new instance. Just go sign up and pretend to your loved ones like you always had one. If you don’t have an Amazon account, well - no sweat. The first step is to set up our EC2 instance. The following is guide for us to reproduce this process. That way, if I ever wanted to move it to another server or run it locally, it would be an absolute cinch. To add to it, I would also set up the Python environment in a Docker container. Thereby being able to access it from anywhere! To solve these problems, after discussing it with a good friend of mine and finding out he had a similar setup himself, I decided to host a Jupyter notebook on a free tier EC2 instance. I don’t want to mess around setting up the environment a second time.I really want to work on this stuff on the go, from multiple different machines. Coming from languages with more streamlined package management, I found myself investing more time getting my machine set up than I thought I’d have to. First, the Python environment can be surprisingly messy.However, I ran into a few dilemmas setting myself up: 3c.Setting up a Jupyter notebook server on an EC2 instance using Docker īecause I’m a fair hand at maths and even better at being late to parties, I’ve been meaning lately to play around with some data science. Accessing IPython Notebook Success! At this point, youve got a fully functional Python clusterenvironment running on EC2, which you are accessing from your local browser 22. Accessing IPython Notebook Enter Password Sign in using password that you set during the prior step (the actual password, not the SHA1 version) 21. It is expected to see a warning, as were using a self-signed SSL certificate Ex: 20. Accessing IPython Notebook SSL Warning Use any modern browser to access the public DNS of your EC2 image. Using IPython Notebook from Local Browser 19. At this point, we can now access IPython Notebook from our local browser! 18. Installing IPython Launch IPython Notebook Launch IPython Notebook with the nbserver profile. Place these commands at the top of the file you dont need to uncomment any of the lines generated when nbserver profile was created. Installing IPython Modify nbserver profile Navigate to the profile_nbserver directory, then modify the ipython_notebook_config.py file with your certificate location and password. Installing IPython Generate SSL certificate Create a self-signed SSL certificate so that we can use HTTPS on the IPython Notebook 16. Installing IPython Create nbserver profile Create an IPython profile called nbserver, which we will use as our profile to create the public Notebook server 15. (No, this is not a real password to use on my EC2 instance!) 14. Copy password to a text editor for later use. Installing IPython Generate Password In IPython REPL, use the IPython.lib passwd() feature to create a password. Run script after downloading to install Anaconda: bash Anaconda-1.8.0-Linux-x86_64.sh 13. Installing IPython SSH into EC2 Instance SSH into EC2 instance, create /temp directory, then download Anaconda (64-bit, Linux). ![]() Installing & Configuring Python/IPython Using Anaconda FULL INSTRUCTIONS: HTTP://IPYTHON.ORG/IPYTHON-DOC/DEV/INTERACTIVE/PUBLIC_SERVER.HTML#NOTEBOOK-PUBLIC-SERVER 12. Launch Spot Instance Wait for fulfillment If your spot request is fulfilled, it will take about 5-10 minutes to launch 11. pem keys If you dont specify a key pair, you cant login to the instance! 10. Launch Spot Instance Set security I generally open all ports and only allow my IP address as a simplistic security protocol, since this is a spot instance that I use for a few hours 8. Cost has been pretty stable at $0.27/hr for a while 7. ![]() Launch Spot Instance Set bid price For max bid, set price that youre comfortable paying to keep instance running. Launch Spot Instance Choose cc2.8xl instance 6. Launch Spot Instance Ubuntu Server 12.04LTS for HVM Instances 5. Launch Spot Instance from Spot Instance Menu 4. 1.Cluster Computing Using IPython Notebook with Amazon EC2Ģ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |