I've been using ipython notebook and there are 2 information (SNOW_USER
and PASSWORD
) that I need to pass so I can connect to the database. I don't want to expose it for security reasons.
I tried to set as ENV VAR
(environmental variables) saving it on my .bash_profile
and also on .profile
using export SNOW_USER='abc'
but it doesn't seem ipython can find it.
import os
print os.environ['SNOW_USER']
I also tried:
%env
But the variables are not showing there either.
Any thoughts on how to do it?