Skip to content

No colors functions in ff utils #1301

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

Merged
merged 5 commits into from
Dec 19, 2018
Merged

Conversation

Kully
Copy link
Contributor

@Kully Kully commented Dec 11, 2018

in favor of #1279

Simply, we are making sure there are no function overlap between plotly/colors.py and plotly/figure_factory/utils.py and all references are updated so all code runs well and smoothly.

@jonmmease this ready for a review

@Kully Kully added this to the v3.5.0 milestone Dec 11, 2018
@Kully Kully requested a review from jonmmease December 12, 2018 16:15
Copy link
Contributor

@jonmmease jonmmease left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @Kully,

Last thing, for the color functions that moved from plotly/figure_factory/utils.py to plotly/colors.py, can you add imports to plotly/figure_factory/utils.py so that these functions are still available under plotly/figure_factory/utils.py? I don't think you'll have any problems with dependencies in this direction. Thanks!

@Kully
Copy link
Contributor Author

Kully commented Dec 14, 2018

can you add imports to plotly/figure_factory/utils.py so that these functions are still available under plotly/figure_factory/utils.py

Is a simple import plotly.colors as clrs in the file good enough? Or do you want each function explicitly imported?

from colors import X, Y, Z, ...

@jonmmease
Copy link
Contributor

@Kully, that latter. The goal is that if someone has a script with

from plotly.figure_factory.utils import X

it should still import as before.

…add imports to functions that got moved from utils to colors
@Kully
Copy link
Contributor Author

Kully commented Dec 17, 2018

Review is addressed - ready to merge?

@jonmmease
Copy link
Contributor

💃

@jonmmease jonmmease merged commit bdafae8 into master Dec 19, 2018
michaelbabyn pushed a commit to michaelbabyn/plotly.py that referenced this pull request Dec 22, 2018
* correct PLOTLY_SCALES in utils.py and ensure gantt/scatter work with new scales being referenced

* move all colors functions stricktly into colors.py and leave the rest in figure_factory.utils.py

* change utils.validate_colorsc_dict to clrs.validate_colors_dict

* reference is_sequence in _bullet.py to already existing function in figure_factory/utils.py

* add validate_colorscale back to colors.py (accidentally deleted) and add imports to functions that got moved from utils to colors
@nicolaskruchten nicolaskruchten deleted the no-colors-functions-in-ff-utils branch June 19, 2020 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants