3/02/2020

Using Virtual Environments in Jupyter Notebook and Python

activate user virtualenv
>source yourenv/bin/activate

install ipykernel
>(yourenv) pip install --user ipykernel


Add you virtualenv to jupyter
>(yourenv) python -m ipykernel install --user --name=myenv

Then you can choose myenv to create new file.



key commands:
pip install --user ipykernel
python -m ipykernel install --user --name=myenv

3/01/2020

denied: Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one.

error:
denied: Your Authorization Token has expired. Please run 'aws ecr get-login' to fetch a new one.

this is worked for me
>eval $( aws ecr get-login --no-include-email --region eu-west-1 )