Skip to content

Update colors.py#288

Open
aa403 wants to merge 1 commit into
santosjorge:masterfrom
aa403:patch-1
Open

Update colors.py#288
aa403 wants to merge 1 commit into
santosjorge:masterfrom
aa403:patch-1

Conversation

@aa403

@aa403 aa403 commented Jul 3, 2024

Copy link
Copy Markdown

forces alpha to be a float. using jupyterlab, it seems like it is coming thru as a np.float which is then causing plotly to fallover

to install:

(for poetry)
cufflinks = { git = "https://github.com/aa403/cufflinks.git", branch = "patch-1" }

(for pip / requirements.txt)
cufflinks @ git+https://github.com/aa403/cufflinks@patch-1

SO discussion of the issue here:
https://stackoverflow.com/questions/51691172/plotly-value-error-invalid-property-for-colour

forces `alpha` to be a `float`.  using jupyterlab, it seems like it is coming thru as a `np.float` which is then causing plotly to fallover
@FliegendeWurst

Copy link
Copy Markdown

Some more context: this fix is required for Numpy 2.x compatibility.

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