amazon-web-servicesamazon-ec2jupyter-notebook

Is it possible to grant multiple users to Jupyter notebook?


I am working on a project in an EC2 instance using jupyter notebook. It seems like jupyter notebook does not allow multiple ssh to its server at the same time, I have to log out if other people want to connect to jupyter notebook through the instance. Is it possible to make multiple access to jupyter notebook from the same instance?


Solution

  • The juypter notebook is installed on a server in this case an EC2 machine. Any number of people can SSH into this machine if they have the credentials using putty or some ssh client, this has no connection with jupyter notebook.

    (assuming that the SSH port 22 is open for the other users and they are able to connect)

    When you launch the jupyter notebook using the jupyter notebook command -> you start a local instance of the jupyter notebook on the default port (maybe 8888)

    you will have a URL for this notebook interface and you can work on it. Important to note -> This is a local instance of your notebook. It is not public and can only be accessed on your OS username as a localhost.

    If other OS users run the jupyter notebook command they will get their local version of the notebook on a different port (maybe 8889 by default as the port number 8888 is already in use by you )

    You can make your notebook public and then you will get a public URL for your notebook (serverip:8888 or the port you have specified)

    This public link can be shared with others. Now multiple people have visibility to your notebook and can edit code in your notebook.

    p.s -> for public notebooks the port in which you are running the notebook needs to accept connections from AWS end. This can be configured in AWS console under the security groups tab