Last active
February 27, 2019 09:33
-
-
Save oeway/78547b315fb65e7b6234c25b509bdfdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<docs lang="markdown"> | |
[TODO: write documentation for this plugin.] | |
</docs> | |
<config lang="json"> | |
{ | |
"name": "Napari-version", | |
"type": "native-python", | |
"version": "0.1.0", | |
"api_version": "0.1.2", | |
"description": "A demo plugin print version number of napari-core.", | |
"tags": [], | |
"ui": "", | |
"inputs": null, | |
"outputs": null, | |
"flags": [], | |
"icon": "extension", | |
"env": "conda create -n napari python=3.6", | |
"requirements": [ | |
"repo: https://github.com/Napari/napari-core", | |
"cmd: pip install -r napari-core/requirements.txt", | |
"cmd: pip install -e napari-core" | |
], | |
"dependencies": [] | |
} | |
</config> | |
<script lang="python"> | |
import napari | |
class ImJoyPlugin(): | |
def setup(self): | |
pass | |
def run(self, my): | |
api.alert("Napari version number: {}".format(napari.__version__)) | |
api.export(ImJoyPlugin()) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment