Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Widgets #34

@jasongrout

Description

@jasongrout
  • Checking the recent ipywidgets changes with the current hack in the notebook to make sure the framework still works well
  • Make an easy way to transform from backbone views to phosphor views that are displayed. Perhaps at the WidgetManager displaying logic level.
    • Minimally wrap widgets
    • Get it working in the new notebook
  • Clean up each view, removing jquery and bootstrap dependencies
    • Rewrite tab widget with phosphor tabs
    • accordion widget
    • test controller view
    • all other cleanups

Widget output system

  • JASON email the list for comments on changing how widgets are displayed
  • JASON Fix widget python code to use ipython display system instead of comm messages
    • adding a widget renderer to the transformime code to be able to display widgets in the output area of a cell. This would take the widget data {'application/jupyter-widget': 'model-id-of-widget'}.
  • Output area widget
    • ping Jon
    • Python side: capture output messages with a context manager and store them instead in the widget state
    • javascript side: give the appropriate transformime instance to the output widget view so that it can render the outputs
  • Creating an output display class that takes in the widget mimetype and displays the correct model in the appropriate place in the output area.
ow1 = OutputWidget()

display(ow1) # send display_data message

with ow1.capture(): # or with ow1:
   plot(x,y)
with ow2.capture()
   plot(x2,y2)

ow1.clear_output()
x = IntSlider()
display(x)
display(plot(data, data*x.value))
def x_change(name, value):
    clear_output()
    plot(data, data*x.value)
x.on_trait_change(x_change)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions