parameters: (self,vw,subject,name,is_overwrite=False)
docstring: Set the view for an open webshow instance from a saved view
  
          Sets the view in a currently-open cortex.webshow instance (with handle `vw`)
          to the saved view named `name`
  
          Parameters
          ----------
          vw : handle for pycortex webgl viewer
              Handle for open webgl session (returned by cortex.webshow)
          subject : string
              pycortex subject id
          name : string
              Name of stored view to re-load
          
          Notes
          -----
          Equivalent to call to vw.save_view(subject,name)
          For a list of the view parameters saved, see viewer._capture_view
docstring_summary: Set the view for an open webshow instance from a saved view
docstring_tokens: Set the view for an open webshow instance from a saved view
function: def save_view(self,vw,subject,name,is_overwrite=False):
          """Set the view for an open webshow instance from a saved view
  
          Sets the view in a currently-open cortex.webshow instance (with handle `vw`)
          to the saved view named `name`
  
          Parameters
          ----------
          vw : handle for pycortex webgl viewer
              Handle for open webgl session (returned by cortex.webshow)
          subject : string
              pycortex subject id
          name : string
              Name of stored view to re-load
          
          Notes
          -----
          Equivalent to call to vw.save_view(subject,name)
          For a list of the view parameters saved, see viewer._capture_view
          """
          view = vw._capture_view()
          sName = os.path.join(self.filestore, subject, "views", name+'.json')
          if os.path.exists(sName):
              if not is_overwrite:
                  raise IOError('Refusing to over-write extant view If you want to do this, set is_overwrite=True!')
          with open(sName,'w') as fp:
              json.dump(view, fp)
function_tokens: def save_view ( self , vw , subject , name , is_overwrite = False ) : view = vw . _capture_view ( ) sName = os . path . join ( self . filestore , subject , "views" , name + '.json' ) if os . path . exists ( sName ) : if not is_overwrite : raise IOError ( 'Refusing to over-write extant view If you want to do this, set is_overwrite=True!' ) with open ( sName , 'w' ) as fp : json . dump ( view , fp )