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

AiiDAlab doesnt display widgets when installing QE App with edge image #512

Open
AndresOrtegaGuerrero opened this issue Jan 10, 2025 · 8 comments

Comments

@AndresOrtegaGuerrero
Copy link
Member

AndresOrtegaGuerrero commented Jan 10, 2025

When using the full-stack:edge image and installing qe app. The app doesnt displayed the widgets

image

@superstar54 and I reproduce the same problem.

I noticed that if i install ipywidget 7.8.5 the app can render the widgets , however ,
widgetsnbextension 3.6.10 (gets upgraded causing other issues)

@danielhollas
Copy link
Contributor

Is this working on latest? What is the version of ipywidgets before you reinstalled it?

@AndresOrtegaGuerrero
Copy link
Member Author

AndresOrtegaGuerrero commented Jan 11, 2025

Yes, it does work with the latest, Xing did the test. And the ipywidgets before was 7.7.4

@danielhollas
Copy link
Contributor

Can you provide the outputs of pip list --user for both the images after you install qeapp?
(make sure you pull the "latest" latest image :-) )

The only change since last version was the update of aiidalab-home package. We did drop the widgetsnbextension pin there, but I wouldn't have though it would make the difference since we still pin it in aiidalab-widgets-base.

Some more questions:

  1. how are you installing qeapp? Through appstore? Which version?
  2. Which version of AWB are you currently using in QeAPP.
  3. Are you doing these tests in a completely fresh environment (i.e. you pull the image and start a fresh container with new volumes attached)?

widgetsnbextension 3.6.10 (gets upgraded causing other issues)

Can you tell more about these issues? We were hoping that the widgetsnbextension pin is no longer needed.

@AndresOrtegaGuerrero
Copy link
Member Author

So i did a new profile in aiidala-launch. and i pull the full-stack:edge image

I installed the app using the appstore , I did the pre-releases.
Currently, the main branch of qe app has these pre-requisites

install_requires =
    aiida-core~=2.2,<3
    Jinja2~=3.0
    aiida-quantumespresso~=4.7
    aiidalab-widgets-base[optimade]==2.3.0a2
    aiida-pseudo~=1.4
    filelock~=3.8
    importlib-resources~=5.2
    aiida-wannier90-workflows==2.3.0
    pymatgen==2024.5.1
    anywidget==0.9.13
    table_widget~=0.0.2

@AndresOrtegaGuerrero
Copy link
Member Author

Can you tell more about these issues? We were hoping that the widgetsnbextension pin is no longer needed.

I forgot , when the widgetsnbextension gets upgrde to 3.6.10 , the QE app doesn't render the rest of the app only the logo

@danielhollas
Copy link
Contributor

Can you list the actually installed packages with pip list --user after the installation in a fresh container? And then do the same for the latest image? I don't understand why they should be different.

@superstar54
Copy link
Member

Hi @danielhollas , the difference I found is:

  • edge: ipywidgets==7.8.5
  • latest: ipywidgets==7.7.4

do you recall at which point the ipywidgets is upgraded?

@danielhollas
Copy link
Contributor

ipywidgets is first installed with aiidalab-home into the image. As you probably already found out, the culprit is likely that I unpined the widgetsnbextension in aiidalab/aiidalab-home#179.
If it is the case that `ipywidgets>=7.8" breaks QeApp, the proper fix is to pin the version there as well.

Can you get the actual error that stop the application from loading? You can look into the JavaScript console to see if there are any errors there. If there are errors in the Python backend, they might not be seen in appmode and you'll need open the jupyter notebook and execute QeApp there.

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