Giter Club home page Giter Club logo

informatics-lab.jubo_widget_wrap's Introduction

JuBo Widget Wrapper

An experiment in bridging the gap between Jupyter Notebooks using ipywidgets and a Bokeh server application. The idea is to test if this might be a good way of sharing prototype apps built in the notebook.

In this experiment the jubo module implements methods/classes from ipywidgets. If used in a notebook context these will simply be the ipywidgets objects, in a Bokeh context they will be Bokeh objects wrapped to implement (a very limited set of) the ipywidgets interface. Additionally there is some patching of IPython to capture output to be displayed and render it in Bokeh.

Requirements

  • jupyter-lab
  • ipywidgets
  • bokeh

A verbose requirements.txt file is also included in the repo.

Demo

Enable the ipywidgets Lab extension:

jupyter labextension install @jupyter-widgets/jupyterlab-manager

Start Jupyter Lab with jubo on the PYTHONPATH:

PYTHONPATH=../:$PYHTONPATH jupyter lab --notebook-dir=notebooks

View and run simple-interactive.ipynb or images.ipynb

convert to python

jubo/convert.py notebooks/images.ipynb bokeh_apps/images.py or jubo/convert.py notebooks/simple-interactive.ipynb bokeh_apps/simple-interactive.py

serve

bokeh serve bokeh_apps/simple-interactive.py --show or bokeh serve bokeh_apps/images.py --show

informatics-lab.jubo_widget_wrap's People

Contributors

tam203 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.