Ok, from the screenshots I can see that you do have dash-bootstrap-components installed.
To exit the Python interpreter it’s either press Ctrl+D or run
The reason for the underline is likely that the Python extension in VSCode is using the wrong version of Python. To fix that, open up the command palette (Cmd+Shift+P on Mac) and type something like
Python: Select Interpreter. You should see the option come up. If you click / arrow + enter that you’ll be able to choose the right one from the list. If you don’t see it you can type the full path from above
As a side note, it looks like you’re using conda environments, in which case I would expect the Python you want to actually be something like
/Users/edwardmcmillan/opt/anaconda3/envs/ethereum/bin/python. Perhaps that’s the reason for the mismatch?