module homeblog.python_exemple_py_to_html
#
Short summary#
module ensae_teaching_cs.homeblog.python_exemple_py_to_html
Helper for HTML
Functions#
function |
truncated documentation |
---|---|
function related to my teachings, it tries to associate a file to a chapter of my book |
|
Converts a python script into a html file. |
|
Converts all python files from a folder into html files. |
Documentation#
Helper for HTML
- ensae_teaching_cs.homeblog.python_exemple_py_to_html.get_first_col(file)#
function related to my teachings, it tries to associate a file to a chapter of my book
- Paramètres:
file – file name (python script)
- Renvoie:
a chapter
- ensae_teaching_cs.homeblog.python_exemple_py_to_html.py_to_html_file(file, writehtml='', addTracking=True, title=None)#
Converts a python script into a html file.
- Paramètres:
folder – folder
writehtml – filename
addTracking – add some code for tracking
- Renvoie:
the processed file (same file but with extension .html)
- ensae_teaching_cs.homeblog.python_exemple_py_to_html.py_to_html_folder(folder, addTracking=True)#
Converts all python files from a folder into html files.
- Paramètres:
folder – folder
addTracking – add some code for the tracking,
py_to_html_file
- Renvoie:
list of processed files