When running the python debugger I can use “envFile”: “${workspaceFolder}/.vscode/env”
in my settings.json file to set environmental variables when using the debugger.
How do I use these project env files in jupyter notebooks? I would like a solution that works for all notebooks and projects without having to modify the underlying notebooks. I see other answers recommend using the dotfile package but that requires a package be added to environments just so they work in vs code which isn’t ideal.
I see there is an option I can add to settings.json called “jupyter.runStartupCommands” where I can run some python code. Is there a way to get ${workspaceFolder} to resolve here so I can load the file?