PyFoam.IPythonHelpers.PermanentStorage module¶
PermanentStorage
Store data permanently in the metadata of a notebook
-
class
PyFoam.IPythonHelpers.PermanentStorage.
PermanentStorage
[source]¶ Bases:
object
Access the stored values in the notebook
To make sure that only one object is created (so that multiple objects can’t interfer) it is created as a singleton. See: A python singleton: http://code.activestate.com/recipes/52558/
-
_PermanentStorage__instance
= None¶
-
_PermanentStorage__permanentStorage
¶ alias of
__permanentStorage
-
__dict__
= mappingproxy({'__init__': <function PermanentStorage.__init__>, '__weakref__': <attribute '__weakref__' of 'PermanentStorage' objects>, '__setattr__': <function PermanentStorage.__setattr__>, '__module__': 'PyFoam.IPythonHelpers.PermanentStorage', '_PermanentStorage__permanentStorage': <class 'PyFoam.IPythonHelpers.PermanentStorage.PermanentStorage.__permanentStorage'>, '_data': {}, '__doc__': "Access the stored values in the notebook\n\n To make sure that only one object is created (so that multiple objects\n can't interfer) it is created as a singleton. See:\n A python singleton: http://code.activestate.com/recipes/52558/", '__delitem__': <function PermanentStorage.__delitem__>, '__dict__': <attribute '__dict__' of 'PermanentStorage' objects>, '__contains__': <function PermanentStorage.__contains__>, '__getattr__': <function PermanentStorage.__getattr__>, '__setitem__': <function PermanentStorage.__setitem__>, '__iter__': <function PermanentStorage.__iter__>, '__call__': <function PermanentStorage.__call__>, '_PermanentStorage__instance': None, '__getitem__': <function PermanentStorage.__getitem__>})¶
-
__module__
= 'PyFoam.IPythonHelpers.PermanentStorage'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
_data
= {}¶
-