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

create an extra_require group for soft dependencies #2818

Closed
mattijn opened this issue Jan 8, 2023 · 4 comments · Fixed by #3354
Closed

create an extra_require group for soft dependencies #2818

mattijn opened this issue Jan 8, 2023 · 4 comments · Fixed by #3354

Comments

@mattijn
Copy link
Contributor

mattijn commented Jan 8, 2023

The following quote is originally posted by @jonmmease in #2816 (comment):

We could add vl-convert-python to an extra_require group and then update the docs to install using that group. For example, we could add vl-convert-python, altair-viewer, and vega-datasets to an extra_require group named full and then instruct people in the docs to install altair with

pip install "altair[full]"
@mattijn
Copy link
Contributor Author

mattijn commented Feb 18, 2023

Include pyarrow as a soft dependency, #2888

@binste
Copy link
Contributor

binste commented Aug 1, 2023

Consider a pyodide specific dependency set, see #3118 (comment)

@joelostblom
Copy link
Contributor

I think also including vegafusion in the extra_require group would be helpful. And creating a conda package for altair-full would also be welcome (although if there is a better way that does not require maintaining a separate meta package then that would be great).

I was reminded about this today when a colleague asks me how to include altair in their env file and I sent them six lines of what to install depending on what they are doing, which is not ideal:

dependencies:
    - altair=5.1.2
    - vl-convert-python  # For saving altair charts as static images
    - vegafusion  # For working with charts > 5,000 graphical objects
    - vegafusion-python-embed  # Same as the previous one
    - vegafusion-jupyter  # For working with charts > 100,000 graphical objects
    - vega_datasets  # Example data

@binste
Copy link
Contributor

binste commented Feb 20, 2024

I like the idea of the dependency groups! See #3309 (comment)

Regarding the naming of the dependency groups, I like the approach of pandas where they use all instead of full to refer to installing all dependency groups. Feels more natural to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants