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

Updated the executor function to provide support for plotly that fixes #36 #44

Merged
merged 6 commits into from
Sep 28, 2023

Conversation

Alfred-Onuada
Copy link
Contributor

This pull request adds support for the missing Plotly visualization library.

so the following code won't throw an error anymore
lida.visualize(summary=summary, goal=goals[3], textgen_config=textgen_config, library='plotly')

@Alfred-Onuada
Copy link
Contributor Author

@microsoft-github-policy-service agree

@trojrobert
Copy link
Contributor

@Alfred-Onuada
Please can you check the code, I am getting the error
image

@trojrobert
Copy link
Contributor

trojrobert commented Sep 21, 2023

@Alfred-Onuada I think the code works for some plot like scatter plot but not histogram

@Alfred-Onuada
Copy link
Contributor Author

I will have a look now, thanks for mentioning

@trojrobert
Copy link
Contributor

@Alfred-Onuada I was already looking into it so I was able to spot the error.

In your scaffold template, you need to add "fig.show()" before returning chart. Please add that

@Alfred-Onuada
Copy link
Contributor Author

@trojrobert take a look again I pushed a new commit to make sure visualize for plotly returns the raster and chart, to prevent errors.

I also tested with histograms across 3 datasets and it worked fine, let me know if you face any errors.

@trojrobert
Copy link
Contributor

It is still not working. I actually already have the code to solve this but I wanted you to also contribute.

image

@trojrobert
Copy link
Contributor

Please show me a test

@Alfred-Onuada
Copy link
Contributor Author

Alfred-Onuada commented Sep 23, 2023

@trojrobert

Screenshot 2023-09-23 at 13 43 29




Below is the cli test using pytest


Screenshot 2023-09-23 at 13 40 51

@Alfred-Onuada
Copy link
Contributor Author

what test command are you using?

@trojrobert
Copy link
Contributor

@Alfred-Onuada You code has a new dependency, we need to add that to the requirements. What version of kaleido are you using?

image

@trojrobert
Copy link
Contributor

@Alfred-Onuada I commented on this before. You need to add fig.show() to the template

image

@trojrobert
Copy link
Contributor

trojrobert commented Sep 24, 2023

@Alfred-Onuada Please check my comment on scaffold.py.

Please also test with multiple dataset

@Alfred-Onuada
Copy link
Contributor Author

Alfred-Onuada commented Sep 24, 2023

@trojrobert [email protected], I have also included the fig.show() in the template

@trojrobert
Copy link
Contributor

@victordibia I think this PR should be done.

@victordibia
Copy link
Collaborator

Thanks @Alfred-Onuada and @trojrobert
I'll review this PR and merge soon!

-V.

Copy link
Collaborator

@victordibia victordibia left a comment

Choose a reason for hiding this comment

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

Thanks again all, this looks good! Merging!

@victordibia victordibia merged commit e134513 into microsoft:main Sep 28, 2023
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.

3 participants