You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you load a saved experiment from the database trying to view figures returns a bytes object for the loaded SVG file. This can be made viewable by using Ipython.display.SVG so it might be nice to do this automatically in the DbExperimentDataV1.figure function along lines of:
# during file importstry:
fromIPython.displayimportSVGdisplay_svg=TrueexceptImportError:
display_svg=False# at end of `DbExperimentData.figure` methodifisinstance(figure_data, bytes) anddisplay_svg:
returnSVG(figure_data)
returnfigure_data
The text was updated successfully, but these errors were encountered:
### Summary
Make figures loaded from experiment db viewable in jupyter notebook as
suggested in #436 .
### Details and comments
Some details that should be in this section include:
- Why this change was necessary
To make it more comfortable to use figures in jupyter notebook.
- What do users and developers need to know about this change
To display figures of experiment data that were loaded from experiment
db don't need to convert to SVG.
---------
Co-authored-by: Will Shanks <[email protected]>
…ommunity#1321)
### Summary
Make figures loaded from experiment db viewable in jupyter notebook as
suggested in qiskit-community#436 .
### Details and comments
Some details that should be in this section include:
- Why this change was necessary
To make it more comfortable to use figures in jupyter notebook.
- What do users and developers need to know about this change
To display figures of experiment data that were loaded from experiment
db don't need to convert to SVG.
---------
Co-authored-by: Will Shanks <[email protected]>
What is the expected behavior?
If you load a saved experiment from the database trying to view figures returns a
bytes
object for the loaded SVG file. This can be made viewable by usingIpython.display.SVG
so it might be nice to do this automatically in theDbExperimentDataV1.figure
function along lines of:The text was updated successfully, but these errors were encountered: