I would like to add a bash magic cell with both a environment variable and a python variable, like this:
!echo "{1+1}" "$HOME"
Expecting it to print:
2 /home/ec2-user
However, this does not evaluate the python expression, output is:
{1+1} /home/ec2-user
Removing the environment variable makes the python expression work:
!echo "{1+1}" "HOME"
2 HOME
What would be the correct syntax for printing both variables?