Are you mounting your virtualenv into the container somehow? How does your editor see the code/docs for your pip dependencies?
Project
Project/venv
Project/src
And then have the whole project as a volume. Then your editor can see the same files as you have in the container.