- Install Jupyter Lab
conda install -c conda-forge jupyterlab
- Create certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mycert.pem -out mycert.pem
Doesn't matter what your inputs are.
- Create a hashed password
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:XXXXX'
- Generate jupyter config
$ jupyter notebook --generate-config
$ vi ~/.jupyter/jupyter_notebook_config.py
Add this to bottom of config file:
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password = 'XXX' # from step 3
c.NotebookApp.certfile = '/home/ubuntu/mycert.pem' # created in step 2
- Launch jupyter lab
$ jupyter lab
- IP Address
Grab it from the AWS console after you find your EC2 instance.
Conda environments aren't showing up in available kernels despite having done:
$ conda install nb_conda_kernels -y
$ conda install nb_conda