TB065

Trabajos Prácticos de la Materia Señales y Sistemas
Index Commits Files Refs
   1 ((=- Auto-generated template file, DO NOT edit directly!
   2     To edit this file, please refer to ../../skeleton/README.md -=))
   3 
   4 
   5 ((=
   6 
   7 DO NOT USE THIS AS A BASE,
   8 IF YOU ARE COPY AND PASTING THIS FILE
   9 YOU ARE PROBABLY DOING THINGS INCORRECTLY.
  10 
  11 Null template, does nothing except defining a basic structure
  12 To layout the different blocks of a notebook.
  13 
  14 Subtemplates can override blocks to define their custom representation.
  15 
  16 If one of the block you do overwrite is not a leaf block, consider
  17 calling super.
  18 
  19 ((*- block nonLeafBlock -*))
  20     #add stuff at beginning
  21     ((( super() )))
  22     #add stuff at end
  23 ((*- endblock nonLeafBlock -*))
  24 
  25 consider calling super even if it is a leaf block, we might insert more blocks later.
  26 
  27 =))
  28 ((*- block header -*))
  29 ((*- endblock header -*))
  30 ((*- block body -*))
  31 ((*- for cell in nb.cells -*))
  32     ((*- block any_cell scoped -*))
  33         ((*- if cell.cell_type == 'code'-*))
  34             ((*- if resources.global_content_filter.include_code -*))
  35             ((*- block codecell scoped -*))
  36                 ((*- if resources.global_content_filter.include_input and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
  37                     ((*- block input_group -*))
  38                     ((*- if resources.global_content_filter.include_input_prompt -*))
  39                         ((*- block in_prompt -*))((*- endblock in_prompt -*))
  40                     ((*- endif -*))
  41                         ((*- block input -*))((*- endblock input -*))
  42                     ((*- endblock input_group -*))
  43                 ((*- endif -*))
  44                 ((*- if cell.outputs and resources.global_content_filter.include_output -*))
  45                     ((*- block output_group -*))
  46                         ((*- if resources.global_content_filter.include_output_prompt -*))
  47                             ((*- block output_prompt -*))((*- endblock output_prompt -*))
  48                         ((*- endif -*))
  49                         ((*- block outputs scoped -*))
  50                             ((*- for output in cell.outputs -*))
  51                                 ((*- block output scoped -*))
  52                                     ((*- if output.output_type == 'execute_result' -*))
  53                                         ((*- block execute_result scoped -*))((*- endblock execute_result -*))
  54                                     ((*- elif output.output_type == 'stream' -*))
  55                                         ((*- block stream scoped -*))
  56                                             ((*- if output.name == 'stdout' -*))
  57                                                 ((*- block stream_stdout scoped -*))
  58                                                 ((*- endblock stream_stdout -*))
  59                                             ((*- elif output.name == 'stderr' -*))
  60                                                 ((*- block stream_stderr scoped -*))
  61                                                 ((*- endblock stream_stderr -*))
  62                                             ((*- endif -*))
  63                                         ((*- endblock stream -*))
  64                                     ((*- elif output.output_type == 'display_data' -*))
  65                                         ((*- block display_data scoped -*))
  66                                             ((*- block data_priority scoped -*))
  67                                             ((*- endblock data_priority -*))
  68                                         ((*- endblock display_data -*))
  69                                     ((*- elif output.output_type == 'error' -*))
  70                                         ((*- block error scoped -*))
  71                                         ((*- for line in output.traceback -*))
  72                                             ((*- block traceback_line scoped -*))((*- endblock traceback_line -*))
  73                                         ((*- endfor -*))
  74                                         ((*- endblock error -*))
  75                                     ((*- endif -*))
  76                                 ((*- endblock output -*))
  77                             ((*- endfor -*))
  78                         ((*- endblock outputs -*))
  79                     ((*- endblock output_group -*))
  80                 ((*- endif -*))
  81             ((*- endblock codecell -*))
  82             ((*- endif -*))
  83         ((*- elif cell.cell_type in ['markdown'] -*))
  84             ((*- if resources.global_content_filter.include_markdown and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
  85                 ((*- block markdowncell scoped-*)) ((*- endblock markdowncell -*))
  86             ((*- endif -*))
  87         ((*- elif cell.cell_type in ['raw'] -*))
  88             ((*- if resources.global_content_filter.include_raw and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
  89                 ((*- block rawcell scoped -*))
  90                 ((*- if cell.metadata.get('raw_mimetype', '').lower() in resources.get('raw_mimetypes', ['']) -*))
  91                 ((( cell.source )))
  92                 ((*- endif -*))
  93                 ((*- endblock rawcell -*))
  94             ((*- endif -*))
  95         ((*- else -*))
  96             ((*- if resources.global_content_filter.include_unknown and not cell.metadata.get("transient",{}).get("remove_source", false) -*))
  97                 ((*- block unknowncell scoped-*))
  98                 ((*- endblock unknowncell -*))
  99             ((*- endif -*))
 100         ((*- endif -*))
 101     ((*- endblock any_cell -*))
 102 ((*- endfor -*))
 103 ((*- endblock body -*))
 104 
 105 ((*- block footer -*))
 106 ((*- endblock footer -*))