brainglobe / brainglobe-meta

(Meta-)package repository for BrainGlobe's Python tools for computational neuroanatomy.
BSD 3-Clause "New" or "Revised" License
10 stars 0 forks source link

Expose brainglobe tools as napari plugins? #41

Open adamltyson opened 9 months ago

adamltyson commented 9 months ago

We can now pip install brainglobe, but within the napari plugin dialog, users still have to install plugins one by one. Until we have a meta-plugin I wonder if it's worth enabling a single brainglobe installation option based on this meta-package.

cc @alessandrofelder @willGraham01

willGraham01 commented 9 months ago

I (niavely) claim that the metapackage ships the napari plugins and installs them to boot.

$ mamba create -y -n napari-plugins python=3.10
$ pip install brainglobe
$ napari

Then opening napari and heading to the plugin menu I can see:

image

Clicking on them immediately brings up the respective widgets.

adamltyson commented 9 months ago

That works, but users can't install the plugins all in one go using the napari plugin installation GUI.

willGraham01 commented 9 months ago

That works, but users can't install the plugins all in one go using the napari plugin installation GUI.

Gotcha, sorry didn't fully grasp the initial premise :sweat_smile: I'm no expert but theoretically adding the various napari metadata files to turn this package into a plugin should do the trick then, right? Even if there's no acutal "pluign content"? @alessandrofelder might be able to confirm/deny my hypothesis

adamltyson commented 9 months ago

I think so. The only consideration would be what else we're shipping in case that causes compatibility problems with napari etc.

adamltyson commented 9 months ago

Although in theory, we should be looking out for that anyway.

alessandrofelder commented 9 months ago

adding the various napari metadata files to turn this package into a plugin should do the trick then, right?

I think so too :crossed_fingers:

we should be looking out for that anyway.

Agreed.