Comments (9)
Yeah this came up in #5. Do you have a pointer for how to get that to work?
from seaborn.
I'm not a packaging expert, but some searching lead me to believe that adding some install_requires=...
lines to your setup.py might solve the issue.
See this for reference:
http://stackoverflow.com/questions/6947988/when-to-use-pip-requirements-file-versus-install-requires-in-setup-py
from seaborn.
Yeah, my understanding was that install_requirements
triggers a failure when you try to pip install
without everything listed, but not that it installs the dependencies for you? I have to look into it more closely, though.
from seaborn.
install_requires
would normally work, but since the requirements here (e.g. statsmodels) don't specify their own requirements with this flag, requirements are installed in the wrong order. Will see if there's a workaround.
from seaborn.
It looks like there used to be some other commands like setup_requires, but the following page says that install_requires will download and build the packages.
http://peak.telecommunity.com/DevCenter/setuptools#declaring-dependencies
from seaborn.
Oh geeze, I didn't even think about how complex it would be trying to auto-install all of numpy / scipy / statsmodels / matplotlib etc.... that is definitely a serious undertaking.
What I was imagining was something a bit less ambitions: using install_requires
only for packages that aren't part of the standard scientific python stack (which is usually installed already via Anaconda etc.)
Specifically, husl
and moss
are two that should (?) be relatively easy to get working with install_requires
, and it I think it would solve this issue for the vast majority of people without requiring you to package the whole stack.
Perhaps scikit-learn
could also be added to those two.
from seaborn.
My understanding is that scikit-learn
is among the most difficult packages to auto-install. But there's only a single function (in moss
) that depends on it, so I was actually probably going to move that function elsewhere to remove the scikit-learn
dependency in seaborn.
I think husl
is a single file, so it might be reasonable to just package that with seaborn. I don't think the author updates it very often.
from seaborn.
Ahh, well I take back what I said about scikit-learn
; I've never tried to install that one myself.
Either auto-installing moss
and husl
, or removing dependencies and doing what you suggest both seem like workable solutions.
from seaborn.
OK I have to admit that was considerably easier than I thought it would be. To test it, I ran (from the source directory):
conda create -n seaborn_dep_test anaconda
pip install .
make test
Which ran with no errors. I think this is good to go, thanks for hounding me!
from seaborn.
Related Issues (20)
- sns.lineplot `hue`param will make wrong number of classes when it pass a field whose dtype is not `category` HOT 1
- Calling scatterplot with size and hue raises TypeError HOT 3
- HI ,we need seaborn cpp HOT 2
- histogram with fixed binwidth - unexpected results for last column HOT 4
- Docu: Reference to root package missing in object.inv file HOT 6
- Value error in histplot with binwidth smaller than half the data range HOT 2
- UnboundLocalError: local variable 'boxprops' referenced before assignment HOT 11
- Doubts about using two types of graphics to draw simultaneously HOT 2
- Palette setting ignored unless passed directly for numeric hues HOT 1
- scatter plot with wide data: markers=False gives an error HOT 3
- countplot taking long time for Series and not Pandas HOT 1
- [New Feature] Range Mapping Plot HOT 1
- Error with `dodge` kwarg when using `FacetGrid` together with `pointplot` HOT 2
- seaborn.objects.Plot.theme unexpected yaxis behavior in 0.13 HOT 3
- JointPlot allow changing positions of the marginal histograms HOT 1
- Mean and Standard Deviation is Different on Point Plot Log Scale HOT 8
- objects.Norm : Normailize among a group? HOT 4
- jointplot with kind="hex" fails with datetime64[ns]
- Seaborn not honouring custom palette set in theme HOT 1
- Setting share{x,y} to row/col in FacetGrid does not work when col_wrap=True
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seaborn.