-
Notifications
You must be signed in to change notification settings - Fork 694
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
Kernel hangs in "TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb" #1694
Comments
cc @kirbyju @aylward and @thewtex, in case you can shed any light on this issue, it would be greatly appreciated. Also created a ticket here InsightSoftwareConsortium/itkwidgets#743 |
Also tried this notebook with pytorch container: nvcr.io/nvidia/pytorch:24.03-py3. |
Signed-off-by: YunLiu <[email protected]>
Thank you for the detailed report on the itkwidget repo. Matt and Brianna are looking into it! |
Hello 👋 , With itkwidgets a) Update the JupyterLab and Jupyter Notebook version
This seems to be unrelated in the transitive dependency arena, but a patch is here: Testing and feedback to see if it addresses your use cause are appreciated. 🙏 Thanks! |
Hi @thewtex, thanks for the quick response.
You can see from the screen shot after view even import numpy as not be executed. Also can see the output from view. BTW, where can I find the requirement for the notebook, I didn't find it in the requirement. Perhaps I want to try the version which can run in notebook 6. |
@KumoLiu thanks for the reproducible example! Addressed here: InsightSoftwareConsortium/itkwidgets#745 After it is released, it will be better to install itkwidgets in the containers so all javascript is loaded at startup. |
The dependencies are here: We keep them as small and light and universal as possible. |
Hi @KumoLiu , these improvements have now been released in itkwidgets 1.0a51. Please try:
|
Hi @thewtex, thanks for the quick fix. |
@KumoLiu thanks for testing. I also observed that error in my testing when I tried installing I am wondering if there is something else in your installation? Could you please try: docker run -it -p 8888:8888 --ipc=host --rm --net host --gpus all thewtex/monai-1694 or simply build and run the following Dockerfile:
? You should see: (there is an issue with the last cell, but I have a fix in progress for that). |
This was a side-effect of fixing the pandas dependency issue, but it has been addressed in itkwidgets 1.0a52. |
Fixes #1692 workaround for #1694 ### Description - Install dependency required by tcia_utils manually to avoid installing opencv-python - comment view command in the notebook ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` --------- Signed-off-by: YunLiu <[email protected]>
Describe the bug
Kernel hangs after itkwidgets visualization in jupyter notebook
https://github.com/Project-MONAI/tutorials/blob/main/model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb
To Reproduce
pip install 'itkwidgets[notebook]>=1.0a49'
Expected behavior
Kernal will not hangs after using view.
Screenshots
Additional context
Kernel hangs after itkwidgets visualization (only on VSCode) InsightSoftwareConsortium/itkwidgets#688
itkwidgets[notebook]>=1.0a49
, look like there will be a requirement compatibility issues for pandas, not sure whether it's related the issue.The text was updated successfully, but these errors were encountered: