Отсюда: https://github.com/conda-forge/basemap-feedstock/issues/30#issuecomment-423512069
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```
От справки:
={motion} Filter {motion} lines through the external program given with the 'equalprg' option. When the 'equalprg' option is empty (this is the default), use the internal formatting function |C-indenting|. But when 'indentexpr' is not empty, it will be used instead |indent-expression|.
Это похоже на установку equalprg
опция - то, что Вы хотите.
Можно установить equalprg
- опция. (см.: он = для больше).