Style files can be imported from third-party packages#

Third-party packages can now distribute style files that are globally available as follows. Assume that a package is importable as import mypackage, with a mypackage/ module. Then a mypackage/presentation.mplstyle style sheet can be used as"mypackage.presentation").

The implementation does not actually import mypackage, making this process safe against possible import-time side effects. Subpackages (e.g. are also supported.