Can't access jupyter notebook from chrome browser

Hi,

Below are the jupyter packages installed, using RHEL 9 ec2 linux.

jupyter --version
Selected Jupyter core packages…
IPython : 8.18.1
ipykernel : 6.29.3
ipywidgets : 8.1.2
jupyter_client : 8.6.0
jupyter_core : 5.7.1
jupyter_server : 2.12.5
jupyterlab : 4.1.2
nbclient : 0.9.0
nbconvert : 7.16.1
nbformat : 5.9.2
notebook : 7.1.1
qtconsole : 5.5.1
traitlets : 5.14.1

using hash password:
key=$(aws --region us-east-1 ssm get-parameters --names $1 --with-decryption | jq -r .Parameters.Value)
hashed_key=$(python3 -c “from notebook.auth import passwd; print(passwd(‘$key’))”)

getting below error:
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘notebook.auth’

Please help to fix the issue.

You’ll have to import notebook before you can use it.

can you please guide.