Skip to content

Only 1 Notes instance appears on dashboard #74

@tcmoore3

Description

@tcmoore3

Description

When attempting to add multiple instances of the Notes module to a dashboard, only the first one (passed to the modules argument of PlotDashboard) actually appears on the dashboard.

To reproduce

from signac_dashboard import Dashboard
from signac_dashboard.modules import StatepointList, ImageViewer, VideoViewer
from signac_dashboard.modules import Notes, DocumentEditor

class PlotDashboard(Dashboard):
    def job_sorter(self, job):
        return job.sp.get('x', 0)


if __name__ == '__main__':
    modules = []
    notes_mod = Notes(name='notes 1', key='notes1')
    modules.append(notes_mod)
    other_notes_mod = Notes(name='notes 2', key='notes2')
    modules.append(other_notes_mod)
    PlotDashboard(modules=modules).main()

System configuration

$ python -c 'import platform; print(platform.platform()); import sys; print(sys.version); import signac_dashboard; print(signac_dashboard.__version__)'
Darwin-17.7.0-x86_64-i386-64bit
3.6.7 | packaged by conda-forge | (default, Jul  2 2019, 02:07:37) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
0.2.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions