ipypublish.filters.filters module

ipypublish.filters.filters.create_key(input, **kwargs)[source]

create sanitized key string which only contains lowercase letters, (semi)colons as c, underscores as u and numbers as roman numerals in this way the keys with different input should mainly be unique

>>> create_key('fig:A_10name56')
ipypublish.filters.filters.dict_to_kwds(dct, kwdstr)[source]

convert a dictionary to a string of keywords

  • dct (dict) –
  • kwdstr (str) – additional keyword strings


>>> dict_to_kwds({"a":1,"c":3},'a=1,b=2')
ipypublish.filters.filters.first_para(input, **kwargs)[source]

get only ttext before a n (i.e. the fist paragraph)

ipypublish.filters.filters.remove_dollars(input, **kwargs)[source]

remove dollars from start/end of file

ipypublish.filters.filters.wrap_latex(input, max_length=75, **kwargs)[source]