Skip to content

An example using Jupyter-React and Jupyter-React-JS in a Jupyter Notebook

Notifications You must be signed in to change notification settings

timbr-io/jupyter-react-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupyter-React-Example

A completely working example of how to leverage any react component inside a Jupyter NbExtension using Jupyter-React and Jupyter-React-JS.

Installing

git clone git@github.com:timbr-io/jupyter-react-example.git 
cd jupyter-react-example && python setup.py develop
jupyter notebook 

Usage

Inside a Jupyter Notebook

from example import Thing
from IPython.display import display
import random

data = [[{'y': random.randrange(1,10), "x": i+1} for i, v in enumerate(range(10))] for x in [1,2,3,4]]

mything = Thing(props={"data":data})
display(mything)

About

An example using Jupyter-React and Jupyter-React-JS in a Jupyter Notebook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages