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

Error displaying widget: model not found #110

Closed
akanz1 opened this issue Oct 10, 2020 · 4 comments
Closed

Error displaying widget: model not found #110

akanz1 opened this issue Oct 10, 2020 · 4 comments

Comments

@akanz1
Copy link

akanz1 commented Oct 10, 2020

Hey Team Lux,

i just installed Lux and the nbextension as described in the Qiuck install section to explore its capabilities and ran into the following error message after hitting the "Toggle Pandas/Lux" button.

Screenshot 2020-10-10 192342

import lux runs without any complaint and running lux.version_info returns (0, 2, 0). Also, when installing i got Validating: OK for both nbextension commands.

I'm running this in the latest version of chrome, python 3.7.8 and pandas 1.1.3.

@dorisjlee
Copy link
Member

Hi @akanz1,

Thank you for your interest in Lux!
I took a look at the issue that you described and was able to reproduce the issue in JupyterLab.

From the screenshot, it looks like you might be using JupyterLab or opening a notebook inside VSCode?
Lux does not currently support JupyterLab, this is an issue that we are hoping to work on in the future.
Could you try using the basic Jupyter notebook via the jupyter notebook command and see if Lux works there? Here is an example notebook that you can use to test if the widget shows up.

@akanz1
Copy link
Author

akanz1 commented Oct 11, 2020

Thank you for getting back to me @dorisjlee,

forking lux and running the example in jupyter notebook does indeed produce the desired behavior! 👍

However, running my minimal example above in jupyter notebook, lab (used initially) or vscode (getting: Error: Module luxwidget, semver range 0.1.0 is not registered as a widget module) does not work. It does however produce an output for larger dataframes in jupyter notebook (as long as there are no print statements in the same cell).

print(df.shape)
df

This does not show the widget, while df does.

Does lux require a minimum number of datapoints before it starts making suggestions?

Looking forward to future versions! :)

@dorisjlee
Copy link
Member

Great, glad that the example notebook is working in your jupyter notebook!

You're right that Lux requires a minimum number of data points (i.e., at least 10 rows in the dataframe) before it starts making the recommendations. The idea is that the default Pandas table is most likely sufficient for looking at such a small dataframe. If the small dataframe is a result of some aggregation, we do try to suggest relevant visualizations. I've added an issue (#111) to make this explanation more clear to the users in the future .

Thanks for the helpful suggestions! Lux is still an early-stage project, so please don't hesitate to reach out if you run into any issues. We'd love to hear about how you're using Lux!

@akanz1
Copy link
Author

akanz1 commented Oct 11, 2020

I agree, that makes sense, thanks again!

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

No branches or pull requests

2 participants