code: def refresh_from_pdb(self, pdb_state):
          
          if 'step' in pdb_state and 'fname' in pdb_state['step']:
              fname = pdb_state['step']['fname']
              lineno = pdb_state['step']['lineno']
              self.sig_pdb_step.emit(fname, lineno)
  
          if 'namespace_view' in pdb_state:
              self.sig_namespace_view.emit(ast.literal_eval(
                      pdb_state['namespace_view']))
  
          if 'var_properties' in pdb_state:
              self.sig_var_properties.emit(ast.literal_eval(
                      pdb_state['var_properties']))
docs: Refresh Variable Explorer and Editor from a Pdb session,
          after running any pdb command.
  
          See publish_pdb_state and notify_spyder in spyder_kernels