def open_docs(kind=None, version=None):
 if (kind is None):
  kind = get_config('MNE_DOCS_KIND', 'api')
 help_dict = dict(api='python_reference.html', tutorials='tutorials.html', examples='auto_examples/index.html')
 if (kind not in help_dict):
  raise ValueError(('kind must be one of %s, got %s' % (sorted(help_dict.keys()), kind)))
 kind = help_dict[kind]
 if (version is None):
  version = get_config('MNE_DOCS_VERSION', 'stable')
 versions = ('stable', 'dev')
 if (version not in versions):
  raise ValueError(('version must be one of %s, got %s' % (version, versions)))
 webbrowser.open_new_tab(('https://martinos.org/mne/%s/%s' % (version, kind)))

def open_docs ( kind = None , version = None ) : if ( kind is None ) : kind = get_config ( 'MNE_DOCS_KIND' , 'api' ) help_dict = dict ( api = 'python_reference.html' , tutorials = 'tutorials.html' , examples = 'auto_examples/index.html' ) if ( kind not in help_dict ) : raise ValueError ( ( 'kind must be one of %s, got %s' % ( sorted ( help_dict . keys ( ) ) , kind ) ) ) kind = help_dict [ kind ] if ( version is None ) : version = get_config ( 'MNE_DOCS_VERSION' , 'stable' ) versions = ( 'stable' , 'dev' ) if ( version not in versions ) : raise ValueError ( ( 'version must be one of %s, got %s' % ( version , versions ) ) ) webbrowser . open_new_tab ( ( 'https://martinos.org/mne/%s/%s' % ( version , kind ) ) )
launch a new web browser tab with the mne documentation .