Skip to content

[ENH]: Make plotting dependencies optional #4066

Open
@pstrzelczak

Description

@pstrzelczak

Describe the feature you want to add to this project

Currently users of pycaret that want to just run machine learning models are forced to install heavy plotting libraries as plotly and kaleido because they are referenced in requirements.txt.

Describe your proposed solution

Make another section in requirements-optional.txt, move 'Plotting' dependencies there and expose another modifier for optional pycaret feature in setup.py. I understand that it may require adjusting the code not to import plotly unconditionally.

Describe alternatives you've considered, if relevant

No response

Additional context

Size of plotly/kaleido dependencies after installing pycaret 3.3.2

221M    /usr/local/lib/python3.10/site-packages/kaleido
168M    /usr/local/lib/python3.10/site-packages/plotly

while pycaret itself is just 4.5MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions