code: def write_to_file(self, path, filename):
          
  
          # =============================== Storage of Filename ======================================
          self.filename = filename
  
          categories_path = _generate_dir_structure(path)
  
          full_path =(categories_path + "\\" + self.notebook_type + "\\" + filename
                      + ".ipynb").replace("\\", "/")
          nb.write(self.notebook, full_path)
  
          # ========================== Run Notebook Code Instructions ================================
          os.system("jupyter nbconvert --execute --inplace --ExecutePreprocessor.timeout=-1 " +
                    full_path)
          os.system("jupyter trust " + full_path)
  
          return "Notebook stored at " + full_path
docs: Class method responsible for generating a file containing the notebook object data.
  
          ----------
          Parameters
          ----------
          path : str
              biosignalsnotebooks Root folder path (where the notebook will be stored).
  
          filename : str
              Defines the name of the notebook file.
  
          Returns
          -------
          out : str
              The returned string will be the full path of the generated Notebook file.