CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download
Project: test
Views: 91872
1
2
from __future__ import print_function
3
import IPython.nbformat as nbformat
4
5
from formatting import *
6
7
8
def prep_for_html_conversion(filename):
9
added_appendix = False
10
with io.open('../'+filename, 'r', encoding='utf-8') as f:
11
nb = nbformat.read(f, nbformat.NO_CONVERT)
12
remove_formatting(nb)
13
if not added_appendix and filename[0:8] == 'Appendix':
14
remove_links_add_appendix(nb)
15
added_appendix = True
16
else:
17
remove_links(nb)
18
nbformat.write(nb, filename)
19
20
21
if __name__ == '__main__':
22
notebooks = \
23
['00_Preface.ipynb',
24
'01_g-h_filter.ipynb',
25
'Appendix_A_Installation.ipynb']
26
27
for n in notebooks:
28
prep_for_html_conversion(n)
29
30
'''merge_notebooks(
31
['../00_Preface.ipynb',
32
'../01_g-h_filter.ipynb',
33
'../02_Discrete_Bayes.ipynb',
34
'../03_Least_Squares_Filters.ipynb',
35
'../04_Gaussians.ipynb',
36
'../05_Kalman_Filters.ipynb',
37
'../06_Multivariate_Kalman_Filters.ipynb',
38
'../07_Kalman_Filter_Math.ipynb',
39
'../08_Designing_Kalman_Filters.ipynb',
40
'../09_Nonlinear_Filtering.ipynb',
41
'../10_Unscented_Kalman_Filter.ipynb',
42
'../11_Extended_Kalman_Filters.ipynb',
43
'../12_Designing_Nonlinear_Kalman_Filters.ipynb',
44
'../13_Smoothing.ipynb',
45
'../14_Adaptive_Filtering.ipynb',
46
'../15_HInfinity_Filters.ipynb',
47
'../16_Ensemble_Kalman_Filters.ipynb',
48
'../Appendix_A_Installation.ipynb',
49
'../Appendix_B_Symbols_and_Notations.ipynb'])'''
50
51