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

[NERSC] Test and Deploy a JupyterHub kernel that reliably can use ipympl + afwdisplay #2

Closed
2 of 9 tasks
wmwv opened this issue Feb 4, 2020 · 5 comments
Closed
2 of 9 tasks
Assignees
Labels
nersc Questions pertaining to NERSC

Comments

@wmwv
Copy link

wmwv commented Feb 4, 2020

Description
I would like to be able to support interactive image viewing using the lsst.afw.display Science Pipelines functionality with an ipympl backend.

Choose all applicable topics by placing an 'X' between the [ ]:

  • jupyter
  • Cori interactive command line
  • Batch jobs
  • python
  • CSCRATCH
  • Community File System
  • HPSS (tape)
  • Data transfer and Globus
  • New User Account or account access problems

To Reproduce
Steps to reproduce the behavior:

  1. Check out on NERSC
    git clone https://github.com/lsst/display_matplotlib
  2. Log in to NERSC Jupyter Hub
  3. Open the examples/display_matplotlib.ipynb Notebook in the display_matplotlib directory checked out above.
  4. Select desc-stack kernel.
  5. Run Cells.
    One should see the random image created in the previous cell.

Instead I get the following error message

Error displaying widget: model not found
@wmwv wmwv added the nersc Questions pertaining to NERSC label Feb 4, 2020
@wmwv
Copy link
Author

wmwv commented Feb 4, 2020

The following matplotlib issue may be relevant:

matplotlib/ipympl#112

@heather999
Copy link
Collaborator

Started to take a look at this. I see that NERSC's jupyter environment already includes the @jupyter-widgets/jupyterlab-manager and jupyter-matplotlib extensions. I do see that ipympl in desc-stack is an older release, I'll try updating and see if that helps.

@heather999
Copy link
Collaborator

Upgrading ipympl seems to have fixed it. @wmwv Can you try desc-stack-dev with the display_matplotlib.ipynb and see that things generally run? I see just one error message The module://ipympl.backend_nbagg matplotlib backend doesn't support display._getEvent() but the plots seem to come up.
If it looks good, I'll promote this to prod and desc-stack will be properly updated.

@wmwv
Copy link
Author

wmwv commented Feb 20, 2020

Yes, desc-stack-dev works. Thank you!

@heather999
Copy link
Collaborator

Sorry for the delay, desc-stack has just been updated. Closing this issue, but if any problems come up, feel free to re-open or start a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nersc Questions pertaining to NERSC
Projects
None yet
Development

No branches or pull requests

2 participants