Skip to content

Instantly share code, notes, and snippets.

Avatar

Wei Ouyang oeway

  • Science For Life Laboratory
  • Stockholm
View GitHub Profile
View hypha-README.md

Hypha

Hypha is a server software for creating computational platforms consists of computational and user interface components.

Hypha server act as a hub for connecting different components through imjoy-rpc.

Installation

pip install hypha
View napari-hypha-plugin-example.py
"""
This module is an example of a barebones QWidget plugin for napari
It implements the Widget specification.
see: https://napari.org/plugins/guides.html?#widgets
Replace code below according to your needs.
"""
import asyncio
from typing import TYPE_CHECKING
View matchbox.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>ESP32 OV2460</title>
<style>
body{font-family:Arial,Helvetica,sans-serif;background:#181818;color:#EFEFEF;font-size:16px}h2{font-size:18px}section.main{display:flex}#menu,section.main{flex-direction:column}#menu{display:none;flex-wrap:nowrap;min-width:340px;background:#363636;padding:8px;border-radius:4px;margin-top:-10px;margin-right:10px}#content{display:flex;flex-wrap:wrap;align-items:stretch}figure{padding:0;margin:0;-webkit-margin-before:0;margin-block-start:0;-webkit-margin-after:0;margin-block-end:0;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0}figure img{display:block;width:100%;height:auto;border-radius:4px;margin-top:8px}@media (min-width: 800px) and (orientation:landscape){#content{display:flex;flex-wrap:nowrap;align-items:stretch}figure img{display:block;max-width:100%;max-height:calc(10
View segmentation-with-bioengine.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View CellPoseDemo.imjoy.html
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "CellPoseDemo",
"type": "web-python",
"version": "0.1.0",
"description": "A demo plugin for running cell-pose segmentation",
View hypha-service-example.py
import asyncio
from imjoy_rpc.hypha import connect_to_server
async def start_service(client_id, service_id, workspace=None, token=None):
print(f"Starting service...")
api = await connect_to_server(
{
"client_id": client_id,
"server_url": "https://ai.imjoy.io/",
"workspace": workspace,
View BioStudies-HTTP-data-access-jupyterlite.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View itk-vtk-viewer-ngff-demo-github-issue.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View live-cell-boundary-triton.imjoy.html
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "live-cell-boundary",
"type": "web-python",
"version": "0.1.0",
"description": "[TODO: describe this plugin with one sentence.]",