Package PyFoam :: Package IPythonHelpers :: Module PermanentStorage :: Class PermanentStorage :: Class __permanentStorage
[hide private]
[frames] | no frames]

Class __permanentStorage

source code


Actual implementation of the storage

Instance Methods [hide private]
 
__call__(self, name, f, call=True)
Get value or evaluate it.
source code
 
__contains__(self, key) source code
 
__delitem__(self, attr)
Remove the property from the metadata
source code
 
__getitem__(self, attr) source code
 
__init__(self)
Make sure that there is a subdictionary in the notebook-metadata
source code
 
__iter__(self) source code
 
__setitem__(self, attr, value)
Set property in the metadata
source code
 
_permanentStorage__displayModes(self) source code
 
autoreadOff(self)
The ()-operator should not automatically get the value from the metadata
source code
 
autoreadOn(self)
The ()-operator should automatically get the value from the metadata
source code
 
autowriteOff(self)
The ()-operator should not automatically set the value in the metadata
source code
 
autowriteOn(self)
The ()-operator should automatically set the value in the metadata
source code
 
iterkeys(self) source code
 
keys(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _permanentStorage__outputHandle = '\n function handle_outpu...
  _permanentStorage__storePath = 'IPython.notebook.metadata.pyFo...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, name, f, call=True)
(Call operator)

source code 

Get value or evaluate it.

Parameters:
  • name - name of the item to get/set
  • f - function to evaluate if the item is not present. If item is not callable (strings for instance) it is set 'as-is'
  • call - Use f() if possible (otherwise f)

__init__(self)
(Constructor)

source code 

Make sure that there is a subdictionary in the notebook-metadata

Overrides: object.__init__

Class Variable Details [hide private]

_permanentStorage__outputHandle

Value:
'''
    function handle_output(out){
        console.log(out);
        var res = null;
         // if output is a print statement
        if(out.msg_type == "stream"){
            res = out.content.data;
        }
...

_permanentStorage__storePath

Value:
'IPython.notebook.metadata.pyFoam.storedData'