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

Install package in edit mode success but nothing shows #53

Open
unkcpz opened this issue Feb 27, 2023 · 3 comments
Open

Install package in edit mode success but nothing shows #53

unkcpz opened this issue Feb 27, 2023 · 3 comments

Comments

@unkcpz
Copy link
Collaborator

unkcpz commented Feb 27, 2023

I install the package with pip install -e . The installation finished without issue but the widget is not working. However, when I install it without edit mode, the installation fails and asks for yarn. I install yarn and the installation was finished but still, the widget is not shown.

I also run the jupyter nbextension commands shown in https://github.com/aiidalab/widget-bandsplot#for-developers but not help. More annoyingly, I install the pypi again and the widget is still broken. I suspect that the local installation break some JS dependencies? Can you check this @dou-du?

I find a lot of exceptions in browser inspcet logs, showing there are problems with the js path. Please find attachment the logs file.

localhost-1677509379829.log

@dou-du
Copy link
Contributor

dou-du commented Feb 28, 2023

I do not have problem for local installation. Do you use ipywidgets 8.x? Currently, it is not supported ipywidgets 8.x yet.

@unkcpz
Copy link
Collaborator Author

unkcpz commented Feb 28, 2023

No, I use ipywidgets 7.7.2, and the ipywidgets version is pinned in the setup.cfg. But I restart the browser the bands show again. I'll close this issue for the moment but I think it needs some documentation to install the widget in edit mode and ask the user to restart the browser. @superstar54 also test it in the QeApp, and install the widget in edit mode has the problem. @superstar54, can you restart the browser or restart the container to see if the issue is resolved?

@superstar54
Copy link

I tested it in a new browser at home by connecting the container at PSI. It does not show the band structure. I will test it again at PSI tomorrow.

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

3 participants