I'm unable to access Config from within a Jupyter ...
# getting-started
p
I'm unable to access Config from within a Jupyter notebook cell .. is that a known problem or has anyone been able to do so? I can access from CLI just fine, but running in a cell the config values are never available. Selecting the stack programmatically and then calling stack.get_all_config() will return an empty dictionary.
e
I wonder if this is because the notebook changes the working directory of the process?
p
I thought so as well, however I'm passing the current os working dir (which is where the pulumi yaml files are located)
e
Can you try doing a normal python subprocess call from within the notebook to something like
pulumi config list
and see if that finds the config ok?
p
Yes, that works.
!pulumi config set ... !pulumi config get ...
returns the value expected (and writes to the yaml obv)
e
But automation doesn't how odd.... can you raise a bug at github.com/pulumi/pulumi about this. We can take a look, sounds like it might be something non-trival