Jupyterlab-Portfolio/fix_basemap.py

9 lines
240 B
Python
Raw Normal View History

2019-03-15 16:43:18 +00:00
import os
import conda
conda_file_dir = conda.__file__
conda_dir = conda_file_dir.split('lib')[0]
proj_lib = os.path.join(os.path.join(conda_dir, 'share'), 'proj')
os.environ["PROJ_LIB"] = proj_lib
from mpl_toolkits.basemap import Basemap