Giter Site home page Giter Site logo

ec2_s3's Introduction

Set up jupyter notebook server on ec2

Set up jupyter notebook on ec2. Here is a great article.

One thing to notice is that now, when setting up .jupyter/jupyter_notebook_config.py, c.NotebookApp.ip = '*' should be c.NotebookApp.ip = '0.0.0.0'

The other thing is that, when create ssl certificate, use this command openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout "cert.key" -out "cert.pem" -batch, so you do not need to enter specific questions. And doing this without sudo will get rid of the PermissionError.

If we use sudo to generate the certificate, only root user can use this certificate. While our anacaconda is for user ubuntu

If we generate cert.key and cert.pem separately, we need edit the .jupyter\jupyter_notebook_config.py like this:

c = get_config()  # Get the config object.
c.NotebookApp.certfile = u'/home/ubuntu/ssl/cert.pem' # path to the certificate we generated
c.NotebookApp.keyfile = u'/home/ubuntu/ssl/cert.key' # path to the certificate key we generated
c.NotebookApp.ip = '0.0.0.0'  # Serve notebooks locally.
c.NotebookApp.open_browser = False  # Do not open a browser window by default when using notebooks.
c.NotebookApp.password = 'sha1:fc216:3a35a98ed980b9...'   # your own password hash just generated

And we can open the port 8888 later after the runing of the instance.

We can use nohup linuxcommand & to run the notebook process at background.

  • & means run at background

  • nohup means ignore the hungup signal sent by terminal when we close it.

s3

ec2_s3's People

Contributors

hhwangs27 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.