simvue-io / simvue-io/python-api

Remove conversion of Matplotlib artifacts to Plotly objects for storage

Open
#218 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
4
Forks
1
Avg merge
5d 8h
Merged PRs (30d)
4

Description

When a Matplotlib figure is stored as an artifact to the Simvue server, it is converted to a Plotly artifact and stored that way (I assume so that it can be viewed within the UI, which is very useful!). However when it is pulled back from the server using the client, the figure is returned as a Plotly object, instead of the Matplotlib figure originally stored. Can the figure be converted back to Matplotlib before being returned, so that the user gets back the same artifact which they stored?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the client path that retrieves stored artifacts and trace how Matplotlib figures are serialized and reconstructed. Check the existing Matplotlib-to-Plotly handling described in the issue and add focused round-trip coverage. Done means a Matplotlib figure stored on Simvue is returned as a Matplotlib figure, while existing Plotly artifact retrieval still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, plotly, python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.