提交 63f32cf6 编写于 作者: W Wei Luning

cell copy bug fix 2

上级 24938289
......@@ -103,6 +103,16 @@ class Cell(Cell_):
def already_run(self):
return self._already_run
def __getstate__(self):
base = Cell_.__getstate__(self)
return base, self.__dict__
def __setstate__(self, state):
base, dict_ = state
Cell_.__setstate__(self, base)
self.__dict__ = dict_
self._attr_synced = False
@property
def _cell_tag(self):
# `<class 'xxxxxxx'>`
......@@ -388,6 +398,9 @@ class Cell(Cell_):
"""
return ''
def __str__(self):
return self.__repr__()
def __repr__(self):
extra_str = self.extend_repr()
info_str = self.__class__.__name__ + '<'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册