Python os.getenv () doesn't see any of my custom variables from Jupyter laptop (os x el capitan)

I declared several variables in my bash (via ~ / .bash_profile) and they work in both bash and python running in bash.

Example:

export PUIBy="Dropbox/CUSP/1_1_PUI/PUI_Bycicle_Research/"

However, when I start the Jupyter laptop, it os.environdoes not see any of them, showing a list of default variables (PWD, SUDO_USER, USERNAME, JPY_PARENT_PID, SSH_AUTH_SOCK, SUDO_UID, GIT_PAGER, etc.)

My system is Mac OS El Captain, anaconda ipython 2.7

+4
source share

Source: https://habr.com/ru/post/1610667/


All Articles