Skip to content

An AnyWidget component for interactive embedding of Reactome Pathway browsers

License

Notifications You must be signed in to change notification settings

riyavsinha/reactome-anywidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactome Anywidget

This is a widget built on AnyWidget that allows you to embed a Reactome pathway diagram in environments like JupyterLab or Marimo notebooks.

Screenshot 2025-02-19 at 1 26 47 AM

Installation

pip install reactome-anywidget

Usage

JupyterLab

from reactome_anywidget import ReactomeWidget
ReactomeWidget(diagramId="R-HSA-199420", width=800, height=600)

Marimo

import marimo as mo
from reactome_anywidget import ReactomeWidget

mo.ui.anywidget(ReactomeWidget, diagramId="R-HSA-199420", width=800, height=600).center()

Known Issues

This widget does not fully work in Marimo. The diagram is displayed, but search functionality won't render. This is possibly due to the fact that Marimo allows creating elements in a shadow DOM, which the Reactome widget cannot access.

About

An AnyWidget component for interactive embedding of Reactome Pathway browsers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published