Set the namespace view settings

def set_namespace_view_settings(self):
        """Set the namespace view settings"""
        if self.namespacebrowser:
            settings = to_text_string(
                self.namespacebrowser.get_view_settings())
            code =(u"get_ipython().kernel.namespace_view_settings = %s" %
                   settings)
            self.silent_execute(code)