Skip to content

Instantly share code, notes, and snippets.

View oeway's full-sized avatar

Wei Ouyang oeway

  • Science For Life Laboratory
  • Stockholm
View GitHub Profile
<config lang="json">
{
"name": "SharedWebPython",
"type": "web-python",
"version": "0.1.1",
"api_version": "0.1.2",
"description": "Sunning plugins in a shared web-python worker",
"tags": [],
"ui": "",
"inputs": null,
<docs lang="markdown">
# CellPose
A generalist algorithm for cell and nucleus segmentation.
https://github.com/MouseLand/cellpose
</docs>
<config lang="json">
@oeway
oeway / LoopDemo.py
Last active December 26, 2020 19:57
import js
import asyncio
from webloop import WebLoop
# set the event loop explicitly
loop = WebLoop()
asyncio.set_event_loop(loop)
# or get the event loop directly
# loop = asyncio.get_event_loop()
<config lang="json">
{
"name": "ImJoyGridDemo",
"type": "native-python",
"editor_height": "400px",
"lang": "python",
"api_version": "0.1.8",
"description": "A demo plugin to show case ImJoy Grid with vizarr, folder tree and schema form.",
"tags": [],
"version": "0.1.1",
<docs>
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "WebPythonWorker",
"type": "web-worker",
"tags": [],
"ui": "",
<config lang="json">
{
"name": "MicroManagerControl",
"type": "native-python",
"version": "0.1.0",
"description": "Microscope control with MicroManager(pymmcore)",
"tags": [],
"ui": "",
"cover": "",
"inputs": null,
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "SimpleIVVewer",
"type": "window",
"tags": [],
"ui": "",
<config lang="json">
{
"name": "OpenCVSegmentation",
"type": "window",
"tags": [],
"ui": "",
"version": "0.1.0",
"cover": "",
"description": "This is a demo plugin for segmenting images with OpenCV.js",
"icon": "extension",
from imjoy import api
import pyclesperanto_prototype as cle
from skimage.io import imread, imsave, imshow
import matplotlib
import numpy as np
class ImJoyPlugin():
async def setup(self):
<config lang="json">
{
"name": "ITK-VTK-Viewer",
"type": "web-worker",
"tags": [],
"ui": "",
"version": "0.1.2",
"cover": "",
"description": "This Plugin uses itk-vtk-viewer to visualize images in ImageJ.JS",
"icon": "extension",