'Setup the namespace browser with provided settings.
Args:
dataframe_format (string): default floating-point format for
DataFrame editor'

def setup(self, check_all=None, exclude_private=None, exclude_uppercase=None, exclude_capitalized=None, exclude_unsupported=None, excluded_names=None, minmax=None, dataframe_format=None):

    assert (self.shellwidget is not None)
    self.check_all = check_all
    self.exclude_private = exclude_private
    self.exclude_uppercase = exclude_uppercase
    self.exclude_capitalized = exclude_capitalized
    self.exclude_unsupported = exclude_unsupported
    self.excluded_names = excluded_names
    self.minmax = minmax
    self.dataframe_format = dataframe_format
    if (self.editor is not None):
        self.editor.setup_menu(minmax)
        self.editor.set_dataframe_format(dataframe_format)
        self.exclude_private_action.setChecked(exclude_private)
        self.exclude_uppercase_action.setChecked(exclude_uppercase)
        self.exclude_capitalized_action.setChecked(exclude_capitalized)
        self.exclude_unsupported_action.setChecked(exclude_unsupported)
        self.refresh_table()
        return
    self.editor = RemoteCollectionsEditorTableView(self, data=None, minmax=minmax, shellwidget=self.shellwidget, dataframe_format=dataframe_format)
    self.editor.sig_option_changed.connect(self.sig_option_changed.emit)
    self.editor.sig_files_dropped.connect(self.import_data)
    layout = QVBoxLayout()
    blayout = QHBoxLayout()
    toolbar = self.setup_toolbar(exclude_private, exclude_uppercase, exclude_capitalized, exclude_unsupported)
    for widget in toolbar:
        blayout.addWidget(widget)
    options_button = create_toolbutton(self, text=_('Options'), icon=ima.icon('tooloptions'))
    options_button.setPopupMode(QToolButton.InstantPopup)
    menu = QMenu(self)
    editor = self.editor
    actions = [self.exclude_private_action, self.exclude_uppercase_action, self.exclude_capitalized_action, self.exclude_unsupported_action, None]
    if is_module_installed('numpy'):
        actions.append(editor.minmax_action)
    add_actions(menu, actions)
    options_button.setMenu(menu)
    blayout.addStretch()
    blayout.addWidget(options_button)
    layout.addLayout(blayout)
    layout.addWidget(self.editor)
    self.setLayout(layout)
    layout.setContentsMargins(0, 0, 0, 0)
    self.sig_option_changed.connect(self.option_changed)
