ITKElastix icon indicating copy to clipboard operation
ITKElastix copied to clipboard

ENH: Update the napari notebook

Open ntatsisk opened this issue 1 year ago • 4 comments

Updates ITK_Example14_WorldCoordinatesExplanation_Napari.ipynb to address #201. I also removed the qt version pins because they were forcing a very old napari version to be installed.

When I test the notebook with pytest in an ubuntu machine via SSH, it passes normally. However, I cannot find how to make napari with jupuyter work in the CI. Some help would be appreciated.

Related to https://forum.image.sc/t/napari-jupyter-notebook-issue/32640/15?

ntatsisk avatar May 19 '23 10:05 ntatsisk

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ntatsisk thanks!

Yes, napari in CI is more difficult -- there needs to be a graphical context on the server. Some of the napari testing code or smart folks like @tlambert03 @jni @kne42 may provide hints.

thewtex avatar May 19 '23 14:05 thewtex

👋 hello, sorry for the delay! 😅

Some resources: we use https://github.com/aganders3/headless-gui and https://github.com/tlambert03/setup-qt-libs to set up our CI.

To run napari in a remote notebook, you need jupyter-desktop to have a remote desktop on which to open the napari window. This repo should be the most up-to-date for getting that working: https://github.com/napari/napari-workshop-template/ (see the binder/ folder).

jni avatar Jun 10 '23 04:06 jni

Hi @jni, thank you for your reply and your direct suggestions during the SciPy 2023 sprints, much appreciated! :)

Unfortunately, still I cannot make it work. I am getting this error on that particular notebook that includes napari:

------------------------------ Captured log call ------------------------------- ERROR traitlets:client.py:863 Kernel died while waiting for execute reply. =========================== short test summary info ============================ FAILED examples/ITK_Example14_WorldCoordinatesExplanation_Napari.ipynb:: - NBMAKE INTERNAL ERROR ================== 1 failed, 27 passed in 1594.12s (0:26:34) =================== Error: Process completed with exit code 1.

Any further ideas? Thanks!

ntatsisk avatar Jul 28 '23 12:07 ntatsisk