parameters: (self, old_name, new_name)
docstring: Triggered when the ADS reports a workspace renaming. This method rename
          any reference to this workspace.
  
          Args:
              old_name (str): old name of the workspace
              new_name (str): new name of the workspace
docstring_summary: Triggered when the ADS reports a workspace renaming. This method rename
          any reference to this workspace.
docstring_tokens: Triggered when the ADS reports a workspace renaming . This method rename any reference to this workspace .
function: def on_workspace_renamed(self, old_name, new_name):
          """
          Triggered when the ADS reports a workspace renaming. This method rename
          any reference to this workspace.
  
          Args:
              old_name (str): old name of the workspace
              new_name (str): new name of the workspace
          """
          if old_name not in self._workspaces:
              return
          i = self._workspaces.index(old_name)
          self._workspaces[i] = new_name
          for i in range(len(self._plotted_data)):
              if self._plotted_data[i][0] == old_name:
                  self._plotted_data[i] = (new_name, self._plotted_data[i][1])
          self.sig_workspace_renamed.emit(old_name, new_name)
function_tokens: def on_workspace_renamed ( self , old_name , new_name ) : if old_name not in self . _workspaces : return i = self . _workspaces . index ( old_name ) self . _workspaces [ i ] = new_name for i in range ( len ( self . _plotted_data ) ) : if self . _plotted_data [ i ] [ 0 ] == old_name : self . _plotted_data [ i ] = ( new_name , self . _plotted_data [ i ] [ 1 ] ) self . sig_workspace_renamed . emit ( old_name , new_name )