This is the module to convert a jupyter notebook to an html page. It will normally render everything the way it was in the notebooks, including suppressing the input of the code cells with input cells masked, and converting the links between notebooks in links between the html pages.
from fastai.gen_doc.nbdoc import *
from fastai.gen_doc.convert2html import *
show_doc(convert_nb)
convert_nb
[source][test]
convert_nb
(fname
,dest_path
=*'.'
*)
No tests found for convert_nb
. To contribute a test please refer to this guide and this discussion.
Convert a notebook fname
to html file in dest_path
.
show_doc(convert_all)
convert_all
[source][test]
convert_all
(folder
,dest_path
=*'.'
,force_all
=False
*)
No tests found for convert_all
. To contribute a test please refer to this guide and this discussion.
Convert modified notebooks in folder
to html pages in dest_path
.
Here's an example to convert all the docs in this folder:
convert_all('.', '../docs')
show_doc(read_nb)
read_nb
[source][test]
read_nb
(fname
)
No tests found for read_nb
. To contribute a test please refer to this guide and this discussion.
Read the notebook in fname
.