Log in to https://ipython.nersc.gov/. Run the following in a notebook cell to get set up (note this only has to be done once for a given user):
%%file ~/.ipython/profile_default/startup/ipython_config.py
import sys
sys.path.insert(0, '/project/projectdirs/metatlas/python_pkgs/')
import os
os.environ['R_LIBS_USER'] = '/project/projectdirs/metatlas/r_pkgs/'