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
Description of expected behavior and the observed behavior
When having a BytesIO/StringIO object as input to pn.pane.image it will crash the second time a widget is called.
I don´t know if it a feature or a bug... I have made a simple implementation of a fix, if it is a bug here.
Complete, minimal, self-contained example code that reproduces the issue
importosimportparamimportpanelaspnclassImageExample(param.Parameterized):
def__init__(self, **params):
self.button=pn.widgets.Button(name="Create Animation", button_type="primary")
self.break_=pn.widgets.Button(name="Break Animation", button_type="primary")
super().__init__(**params)
self.gif=None@param.depends(pn.state.param.busy)defanimation(self, busy):
returnNoneifbusyelseself.gif@param.depends("button.clicks")def_create_animation(self):
# it could be any gif... :)self.gif=pn.pane.GIF(open(os.path.join(os.path.dirname(__file__),'index.gif'), 'rb'))
@param.depends("break_.clicks")def_break_animation(self):
passie=ImageExample()
pn.Column(
ie.button,
ie.break_,
ie.animation,
ie._create_animation,
).servable()
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered:
hoxbro
changed the title
BytesIO/StringIO crashes pn.pane.image if called second time.
BytesIO/StringIO crashes pn.pane.image if called second time
Oct 27, 2020
hoxbro
changed the title
BytesIO/StringIO crashes pn.pane.image if called second time
BytesIO/StringIO break pn.pane.image if called second time
Oct 27, 2020
ALL software version info
Panel: 0.10.0.post7+gb5cf6928
Description of expected behavior and the observed behavior
When having a BytesIO/StringIO object as input to pn.pane.image it will crash the second time a widget is called.
I don´t know if it a feature or a bug... I have made a simple implementation of a fix, if it is a bug here.
Complete, minimal, self-contained example code that reproduces the issue
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: