In [3]:
import os,sys
sys.path.insert(0, os.path.abspath('..'))
from hublib.ui import HideCodeButton, RunAllButton

RunAllButton

Click it to run all the code in this notebook.


In [4]:
RunAllButton()



In [5]:
RunAllButton(label="Run Cells", icon='fa-play-circle-o', style='danger', tooltip='Run All Cells')


HideCodeButton

Toggles the visibility of the code cells.


In [6]:
HideCodeButton()



In [7]:
def mycb():
    print("My Callback function was called.")

hb = HideCodeButton(style='warning', cb=mycb)
hb


ipywidget compatibility


In [8]:
from ipywidgets import HBox, Button

HBox([Button(description='Foo'), hb.w])