trappy.nbexport.exporter module

Preprocessor to remove Marked Lines from IPython Output Cells

class trappy.nbexport.exporter.HTML(**kwargs)[source]

Bases: nbconvert.exporters.html.HTMLExporter

HTML Exporter class for TRAPpy notebooks

class trappy.nbexport.exporter.TrappyPlotterPreprocessor(*args, **kwargs)[source]

Bases: nbconvert.preprocessors.base.Preprocessor

Preprocessor to remove Marked Lines from IPython Output Cells

filter_output(output)[source]

Function to remove marked lines

preprocess_cell(cell, resources, cell_index)[source]

Check if cell has text/html output and filter it