Skip to main content

Extended widgets for jupyter notebooks.

Project description

ipyumbrella

Improved ipywidgets using contextmanager.

Install

pip install ipyumbrella

Usage

import ipyumbrella as uw
import matplotlib.pyplot as plt
carousel = uw.Carousel()
for i in range(5):
    with carousel.item():
        plt.plot(range(10 + i))
carousel
acc = uw.Accordion()
for i in range(5):
    with acc.item('Item {}'.format(i)):
        plt.plot(range(10 + i))
acc
tabs = uw.Tabs()
for i in range(5):
    with tabs.item('Item {}'.format(i)):
        plt.plot(range(10 + i))
tabs
# manually add an output as a tab above
with uw.Output() as out:
    tabs.append(out)
    plt.plot(range(10 + i))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipyumbrella-0.0.14.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page