Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 453 Bytes

enabling-matplotlib-in-osx.org

File metadata and controls

18 lines (13 loc) · 453 Bytes

Enabling Matplotlib in OSX

NOTE More about this topic in this matplotlib FAQ.

Define this function in your .bashrc file

function frameworkpython {
    if [[ ! -z "$VIRTUAL_ENV" ]]; then
        PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python "$@"
    else
        /usr/local/bin/python "$@"
    fi
}

Run your script using frameworkpython instead of python