-
Notifications
You must be signed in to change notification settings - Fork 43
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
Interactive Scan visualization does not work #14
Comments
Hmm. I had this same issue with |
This is referenced here: matplotlib/matplotlib#3105 It is difficult to debug on my since it seems to happen only 1 in 10 times I run the code. Is the slider non-responsive every time you try to use the |
It looks like it consistently does not work in jupyter notebook, but maybe that is expected. It does work when running from a standalone script. Thanks! |
I'm going to reopen this because I've run into this issue a few times in ipython. I haven't used notebooks in quite a while, so I'm not sure how well matplotlib widgets work there. Anyhow, regardless of ipython or jupyter, this is definitely an annoyance because interactive environments are precisely those where one would like to use the interactive viewers. |
Starting the jupyter notebook with |
This didn't fix the issue on my end. |
Sorry, I meant |
I figured this out by playing with this parameter: (huge thanks to matplotlib/matplotlib#4853 (comment)) import matplotlib as mpl
mpl.rcParams['figure.dpi'] = 50 I guess it has something to do that I have a very big (and rather antique!) display on my desk! |
I don't think so. The default GUI is definitely not created in a smart way, and essentially relies on the window being scaled automatically when not in a notebook. |
This is in the notebook, I used your directive you suggested earlier: |
I'm saying that in the non-notebook setting, we can play fast and loose with making things too big since the window manager automatically rescales things to fit in the available screen space. We don't have this luxury in the notebook view, which is why it appears so big, but I'm glad that setting the DPI provides a work-around. |
I see. I have not tried to run it in non-notebook setting. |
Ah, works SO much better outside of the notebook! Thanks! |
i am a beginner in LIDC dataset. Could u please tell me how to specify path in configuration file.i tried using the tutorial given.But i got the following error. ~/anaconda3/lib/python3.6/site-packages/pylidc/Scan.py in to_volume(self, verbose) ~/anaconda3/lib/python3.6/site-packages/pylidc/Scan.py in load_all_dicom_images(self, verbose) ~/anaconda3/lib/python3.6/site-packages/pylidc/Scan.py in get_path_to_dicom_files(self) RuntimeError: Could not establish path to dicom files. Have you specified the |
Following the instructions and example here: https://pylidc.github.io/tuts/scan.html#scan-visualization, the result is a static image, not interactive visualization.
See demo of the actual behavior here: https://www.screencast.com/t/kSNVqyRP1Rt
The text was updated successfully, but these errors were encountered: