Replies: 1 comment
-
Not retained where? What are you trying to do where the environment information is not being picked up? And how are you launching VS Code; if it's in your And the docs for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently switched to vscode (v 1.72.2), and set up a new virtual environment to be used as the python interpreter for a project. Just about everything works as expected; however, I am having issues importing pygmt, as the necessary GMT_LIBRARY_PATH environment variable (set in my .bashrc) is not retained.
I'm having some difficulties understanding how to setup something like a .env file to store local variables. If I run my local install of python3 (i.e., not a venv) and load the appropriate modules, then pygmt knows where to find the gmt libraries and works fine.
What is the common practice for achieving this through vscode?
Beta Was this translation helpful? Give feedback.
All reactions