class_docstr: A class for computing and verifying notebook signatures.
class_docstr_tok: ["A","class","for","computing","and","verifying","notebook","signatures","."]
docstr: Mark cells as trusted if the notebook's signature can be verified
  
  Sets ``cell.metadata.trusted = True | False`` on all code cells,
  depending on the *trusted* parameter. This will typically be the return
  value from ``self.check_signature(nb)``.
  
  This function is the inverse of check_cells
docstr_tok: ["Mark","cells","as","trusted","if","the","notebook","'s","signature","can","be","verified","Sets","``","cell.metadata.trusted","=","True","|","False","``","on","all","code","cells",",","depending","on","the","*","trusted","*","parameter",".","This","will","typically","be","the","return","value","from","``","self.check_signature","(","nb",")","``",".","This","function","is","the","inverse","of","check_cells"]
code: def mark_cells(self, nb, trusted):
      """Mark cells as trusted if the notebook's signature can be verified
  
      Sets ``cell.metadata.trusted = True | False`` on all code cells,
      depending on the *trusted* parameter. This will typically be the return
      value from ``self.check_signature(nb)``.
  
      This function is the inverse of check_cells
      """
      if nb.nbformat < 3:
          return
  
      for cell in yield_code_cells(nb):
          cell["metadata"]["trusted"] = trusted
  
imports: from __future__ import annotations
  import hashlib
  import os
  import sys
  import typing
  from collections import OrderedDict
  from contextlib import contextmanager
  from datetime import datetime, timezone
  from hmac import HMAC
  from pathlib import Path
  from jupyter_core.paths import jupyter_data_dir
  from base64 import encodebytes
  from jupyter_core.application import JupyterApp, base_flags
  from traitlets import Any, Bool, Bytes, Callable, Enum, Instance, Integer, Unicode, default, observe
  from traitlets.config import LoggingConfigurable
  from .None import NO_CONVERT, __version__, read, reads
label_desc: Use image node_id 14 for calling the NotebookNotary obj's underlying member method code with example usage: obj.mark_cells(nb, trusted) without return types