sudo -u ec2-user -i <<'EOF'
# Install Neptune client library
source /home/ec2-user/anaconda3/bin/activate $env
pip install neptune-client
source /home/ec2-user/anaconda3/bin/deactivate
# Install jupyter extension
source /home/ec2-user/anaconda3/bin/activate JupyterSystemEnv
pip install neptune-notebooks
jupyter nbextension enable --py neptune-notebooks --sys-prefix
jupyter labextension install neptune-notebooks
source /home/ec2-user/anaconda3/bin/deactivate