Gabriel Selzer

Results 113 comments of Gabriel Selzer

Once we clean up scijava/scijava-search#30, we should bump the "recommended" (not hard minimum) version of scijava-search, and this will be solved!

This should be fixed with imagej/imagej-ops#651 + imagej/pyimagej#264. We will just have to pin the SciJava Ops version here.

> I guess scyjava's behavior needs to be improved here? Maybe? We also need a widget mapping, as napari-imagej doesn't know how to harvest an `Iterator`... > OTOH, it's weird...

It seems like that would be *pretty tricky* to implement in practice. Right now, napari-imagej delegates completely to magicgui to make the layer selector boxes. As such, any solution would...

> Yeah, we can just do post-dismissal validation, similar to how we handle the settings dialog. If it's a computer op and the in == out, display an error dialog...

@hinerm suggested I make a MCVE. I determined that the issue lies with the interaction between JPype and magicgui, as `JPype.startJVM()` is enough to cause the error. I had less...

I have created a set of steps for reproducible failure: ``` git clone [email protected]:gselzer/napari-foobar.git cd napari-foobar git checkout npe-replication conda env create -f environment.yml conda activate napari-foobar /envs/napari-foobar/bin/pip install -e...

UPDATE: I took the [JPype recommendation](https://jpype.readthedocs.io/en/latest/develguide.html#debugging-issues) (thanks for the heads up, @elevans), and got the following: `script.py`: ```python3 import napari import numpy as np viewer = napari.view_image(np.ones((20, 20))) ``` Running...

@Czaki and @kephale suggested on the [napari zulip](https://napari.zulipchat.com/#narrow/stream/212875-general/topic/.E2.9C.94.20disabling.20variable.20printouts.20in.20VerboseTB/near/348474824) that we could set the environment variable `NAPARI_CATCH_ERRORS=0` to prevent napari from trying to access the JPype stats. This is cool, and...

> Is this an issue with the napari widgets panel in general? Or with the napari-imagej widgets specifically? The former. I just downloaded like 10 random plugins and started them...