Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for importing without manipulating the rcParams #13

Closed
mwaskom opened this issue Nov 20, 2013 · 2 comments
Closed

Allow for importing without manipulating the rcParams #13

mwaskom opened this issue Nov 20, 2013 · 2 comments
Milestone

Comments

@mwaskom
Copy link
Owner

mwaskom commented Nov 20, 2013

As much as I like the default style (that's why I made it the default), there are situations where people might want to use the plotting functions, but not the style. It actually used to be the case that you would have to call

seaborn.set()

after importing, but I decided that was kind of gross. Once #10 is sorted out it will be easy to revert the style changes that get made, but even then I think it might be nice to have something like

import seaborn.apionly as sns

which would give you the whole namespace, but avoid the call to rcmod.set() in __init__.py.

I'm not sure I've ever seen this design pattern in a Python package so I'm not certain of the correct/clean way to do it. Please pipe up if you have an idea.

@arsenovic
Copy link

i would prefer to call set() my self, but since since seaborn is such a high-level package, i may not be the intended audience.

your apionly suggestion sounds reasonable.

@mwaskom
Copy link
Owner Author

mwaskom commented Mar 7, 2014

Closed with #126

@mwaskom mwaskom closed this as completed Mar 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants