-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.env file is not reloaded/interpolated #9480
Comments
Thanks for filing this issue, unfortunately we don't support this feature in the extension. |
Thanks for looking into this @DonJayamanne! I guess there are two important things here:
|
to be clear, .env files area supported, but not replacing tokens such as once again, we'll focus this within the team and we'll update this issue accordingly |
Thanks for the issue, but we're not going to pursue this at this time. |
Can you point me on the direction of reloading the |
Sorry, but I don't quite understand the question here. |
If an I've tried, None of these seem to do anything, the original variables loaded the first time will be the ones that the notebook sees. |
@janrito Please could you create a new issue for what you are describing. |
Any solution to this? I met the same issue/bug. |
Applies To
What happened?
I've been trying to add some additional search paths to PYTHONPATH, so I created an env file
There are a few problems:
sys.path
is:I cannot reload the environment variables. I've tried restarting the kernel, the language server, vscode itself - with no success. I deleted the .env file
sys.path
remains the sameThe path relative root is wrong:
In
.vscode/settings.json
I have set:The additional search paths should have been added relative to the project root, not relative to the notebooks directory.
VS Code Version
Version: 1.66.0-insider
Jupyter Extension Version
v2022.3.1000851004
Jupyter logs
No response
Coding Language and Runtime Version
Python v3.9.10 from miniconda
Language Extension Version (if applicable)
v2022.3.10831003
Anaconda Version (if applicable)
mamba 0.22.1 conda 4.12.0
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: