Cached environment variables using conda env? #9725
Replies: 1 comment
-
This looks like a bug, hence closing this conversation in favor of #9762 |
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
-
Hi all,
I'm using jupyter inside a conda environment in vscode on Ubuntu and all works great. However, recently I've experienced issues with AWS access tokens expiring inside my jupyter notebook.
It seems that these access tokens get cached at some level, either in the code environment or somewhere in the jupter layer, but I couldn't figure out where and how to clean it up.
Example:
I'm using
aws-vault
to generate SSO credentails, that can be accessed in the environment.After starting a session, I can access the
AWS_SESSION_EXPIRATION
from my terminal:when I start vscode, open a terminal, I get the same.
When I activate my environment, and run
python -c "import os;print(os.environ['AWS_SESSION_EXPIRATION'])"
, I get the same.However, when I open a new jupyter notebook and select the same environment, and run
I get
2022-04-06T11:09:03Z
Can anyone help me clean this up?
Thanks!!
Edit:
I've tried restarting vscode and the machine itself, but the issue remains.
Beta Was this translation helpful? Give feedback.
All reactions