TeamHG-Memex / Formasaurus
Showing 1 of 1 files from the diff.

@@ -48,7 +48,6 @@
Loading
48 48
    A widget with a paginator for annotating multiple forms.
49 49
    """
50 50
    back, forward, slider = get_pager_elements(0, len(annotations) - 1)
51 -
    rendered = {}
52 51
53 52
    def render(i):
54 53
        widget = FormAnnotator(
@@ -63,20 +62,14 @@
Loading
63 62
64 63
    def on_change(change):
65 64
        value = change['new']
66 -
67 -
        for i in rendered:
68 -
            rendered[i].close()
69 -
70 -
        if value not in rendered:
71 -
            rendered[value] = render(value)
72 -
        else:
73 -
            rendered[value].open()
65 +
        rendered_widget = render(value)
74 66
75 67
        if save_func:
76 68
            save_func()
77 69
78 70
        with out:
79 -
            display(rendered[value])
71 +
            out.clear_output()
72 +
            display(rendered_widget)
80 73
81 74
    slider.observe(on_change, names='value')
82 75
    on_change({'new': slider.value})
Files Coverage
formasaurus 74.84%
Project Totals (13 files) 74.84%
154.4
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux
TOXENV=py35
154.3
TRAVIS_PYTHON_VERSION=2.7.13
TRAVIS_OS_NAME=linux
TOXENV=py27

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading