Skip to content

plotly visualizer as a standalone component #1874

@yogeshVU

Description

@yogeshVU

Based on the discussion with @brollb

It would be great to have plotly visualizer(https://github.com/deepforge-dev/deepforge/tree/master/src/visualizers/widgets/PlotlyGraph) as a standalone component, which can be incorporated into different webgme projects for visualization of results. Following seems to be current approach of the plotly visualizer in deepforge

  1. write an operation in python using matplotlib
  2. we have a custom matplotlib backend (like how jupyter notebooks handle matplotlib) which converts the plot to a plotly JSON representation
  3. the plotly JSON is printed to stdout and parsed by the plugin responsible for executing jobs
  4. the plotly JSON is saved in a node in the model. The PlotlyGraph visualizer is the default visualizer for this node type
  5. when the node is viewed, the PlotlyGraph visualizer fetches the JSON representation and passes it to plotly to visualize

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