[Python] Environment variables unavailable to jupyter notebook but I see them in base printenv

Discussão em 'Python' iniciado por Stack, Setembro 16, 2024.

  1. Stack

    Stack Membro Participativo

    I added a few environment variables to my activate script by adding

    export MYVAR=blahblah


    to the end.

    When I activate via source ./activate and then do printenv I see them.

    From a bash terminal if I launch python then do

    import os
    os.environ


    then I see them.

    BUT if I open a jupyter notebook either through the web interface or through VSC remote connection then I don't see them.

    What's the missing link?

    Continue reading...

Compartilhe esta Página