/
search.html
2045 lines (1332 loc) · 105 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<title>Search the site</title>
<meta name="description" content=" ">
<link rel="canonical" href="https://theotheo.github.io/pythonsciencebook/search">
<link rel="alternate" type="application/rss+xml" title="Python Science" href="https://theotheo.github.io/pythonsciencebook/feed.xml">
<meta property="og:url" content="https://theotheo.github.io/pythonsciencebook/search" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Search the site" />
<meta property="og:description" content=" " />
<meta property="og:image" content="https://theotheo.github.io/pythonsciencebook/images/logo/logo.png" />
<meta name="twitter:card" content="summary">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": "https://theotheo.github.io/pythonsciencebook/search",
"headline": "Search the site",
"datePublished": "2019-11-07T18:33:49+03:00",
"dateModified": "2019-11-07T18:33:49+03:00",
"description": " ",
"author": {
"@type": "Person",
"name": "Ildar Belyalov"
},
"publisher": {
"@type": "Organization",
"name": "Data 100 at UC Berkeley",
"logo": {
"@type": "ImageObject",
"url": "https://theotheo.github.io/pythonsciencebook",
"width": 60,
"height": 60
}
},
"image": {
"@type": "ImageObject",
"url": "https://theotheo.github.io/pythonsciencebook",
"height": 60,
"width": 60
}
}
</script>
<link rel="stylesheet" href="/pythonsciencebook/assets/css/styles.css">
<!-- <link rel="manifest" href="/manifest.json"> -->
<!-- <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#efae0a"> -->
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#233947">
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="/pythonsciencebook/images/logo/favicon.ico">
<!-- MathJax Config -->
<!-- Allow inline math using $ and automatically break long math lines -->
<!-- (mostly) copied from nbconvert configuration -->
<!-- https://github.com/jupyter/nbconvert/blob/master/nbconvert/templates/html/mathjax.tpl -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
processEnvironments: true
},
// Center justify equations in code and markdown cells. Elsewhere
// we use CSS to left justify single line equations in code cells.
displayAlign: 'center',
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}},
linebreaks: { automatic: true },
}
});
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML' async></script>
<!-- DOM updating function -->
<script src="/pythonsciencebook/assets/js/page/dom-update.js"></script>
<!-- Selectors for elements on the page -->
<script src="/pythonsciencebook/assets/js/page/documentSelectors.js"></script>
<!-- Define some javascript variables that will be useful in other javascript -->
<script>
const site_basename = '/pythonsciencebook';
</script>
<!-- Add AnchorJS to let headers be linked -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.0/anchor.min.js" async></script>
<script src="/pythonsciencebook/assets/js/page/anchors.js" async></script>
<!-- Include Turbolinks to make page loads fast -->
<!-- https://github.com/turbolinks/turbolinks -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js" async></script>
<meta name="turbolinks-cache-control" content="no-cache">
<!-- Load nbinteract for widgets -->
<!-- Load Thebelab for interactive widgets -->
<!-- Include Thebelab for interactive code if it's enabled -->
<!-- Display Thebelab button in each code cell -->
<script>
/**
* Set up thebelab button for code blocks
*/
const thebelabCellButton = id =>
`<a id="thebelab-cell-button-${id}" class="btn thebebtn o-tooltip--left" data-tooltip="Interactive Mode">
<img src="/pythonsciencebook/assets/images/edit-button.svg" alt="Start thebelab interactive mode">
</a>`
const addThebelabButtonToCodeCells = () => {
const codeCells = document.querySelectorAll('div.input_area > div.highlight:not(.output) pre')
codeCells.forEach((codeCell, index) => {
const id = codeCellId(index)
codeCell.setAttribute('id', id)
if (document.getElementById("thebelab-cell-button-" + id) == null) {
codeCell.insertAdjacentHTML('afterend', thebelabCellButton(id));
}
})
}
initFunction(addThebelabButtonToCodeCells);
</script>
<script type="text/x-thebe-config">
{
requestKernel: true,
binderOptions: {
repo: 'theotheo/pythonsciencebook',
ref: 'gh-pages',
},
codeMirrorConfig: {
theme: "abcdef"
},
kernelOptions: {
name: 'python3',
}
}
</script>
<script src="https://unpkg.com/thebelab@0.4.0/lib/index.js" async></script>
<script>
/**
* Add attributes to Thebelab blocks
*/
const initThebelab = () => {
const addThebelabToCodeCells = () => {
console.log("Adding thebelab to code cells...");
// If Thebelab hasn't loaded, wait a bit and try again. This
// happens because we load ClipboardJS asynchronously.
if (window.thebelab === undefined) {
setTimeout(addThebelabToCodeCells, 250)
return
}
// If we already detect a Thebelab cell, don't re-run
if (document.querySelectorAll('div.thebelab-cell').length > 0) {
return;
}
// Find all code cells, replace with Thebelab interactive code cells
const codeCells = document.querySelectorAll('.input_area pre')
codeCells.forEach((codeCell, index) => {
const id = codeCellId(index)
codeCell.setAttribute('data-executable', 'true')
// Figure out the language it uses and add this too
var parentDiv = codeCell.parentElement.parentElement;
var arrayLength = parentDiv.classList.length;
for (var ii = 0; ii < arrayLength; ii++) {
var parts = parentDiv.classList[ii].split('language-');
if (parts.length === 2) {
// If found, assign dataLanguage and break the loop
var dataLanguage = parts[1];
break;
}
}
codeCell.setAttribute('data-language', dataLanguage)
// If the code cell is hidden, show it
var inputCheckbox = document.querySelector(`input#hidebtn${codeCell.id}`);
if (inputCheckbox !== null) {
setCodeCellVisibility(inputCheckbox, 'visible');
}
});
// Remove the event listener from the page so keyboard press doesn't
// Change page
document.removeEventListener('keydown', initPageNav)
keyboardListener = false;
// Init thebelab
thebelab.bootstrap();
// Remove copy buttons since they won't work anymore
const copyAndThebeButtons = document.querySelectorAll('.copybtn, .thebebtn')
copyAndThebeButtons.forEach((button, index) => {
button.remove();
});
// Remove outputs since they'll be stale
const outputs = document.querySelectorAll('.output *, .output')
outputs.forEach((output, index) => {
output.remove();
});
// Find any cells with an initialization tag and ask ThebeLab to run them when ready
var thebeInitCells = document.querySelectorAll('div.tag_thebelab-init');
thebeInitCells.forEach((cell) => {
console.log("Initializing ThebeLab with cell: " + cell.id);
cell.querySelector('.thebelab-run-button').click();
});
}
// Add event listener for the function to modify code cells
const thebelabButtons = document.querySelectorAll('[id^=thebelab], [id$=thebelab]')
thebelabButtons.forEach((thebelabButton,index) => {
if (thebelabButton === null) {
setTimeout(initThebelab, 250)
return
};
thebelabButton.addEventListener('click', addThebelabToCodeCells);
});
}
// Initialize Thebelab
initFunction(initThebelab);
</script>
<!-- Load the auto-generating TOC (non-async otherwise the TOC won't load w/ turbolinks) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.4.2/tocbot.min.js" async></script>
<script src="/pythonsciencebook/assets/js/page/tocbot.js"></script>
<!-- Google analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id="></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '');
</script>
<!-- Clipboard copy button -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" async></script>
<!-- Load custom website scripts -->
<script src="/pythonsciencebook/assets/js/scripts.js" async></script>
<!-- Load custom user CSS and JS -->
<script src="/pythonsciencebook/assets/custom/custom.js" async></script>
<link rel="stylesheet" href="/pythonsciencebook/assets/custom/custom.css">
<!-- Update interact links w/ REST param, is defined in includes so we can use templates -->
<script>
/**
* To auto-embed hub URLs in interact links if given in a RESTful fashion
*/
function getJsonFromUrl(url) {
var query = url.split('?');
if (query.length < 2) {
// No queries so just return false
return false;
}
query = query[1];
// Collect REST params into a dictionary
var result = {};
query.split("&").forEach(function(part) {
var item = part.split("=");
result[item[0]] = decodeURIComponent(item[1]);
});
return result;
}
function dict2param(dict) {
params = Object.keys(dict).map(function(k) {
return encodeURIComponent(k) + '=' + encodeURIComponent(dict[k])
});
return params.join('&')
}
// Parse a Binder URL, converting it to the string needed for JupyterHub
function binder2Jupyterhub(url) {
newUrl = {};
parts = url.split('v2/gh/')[1];
// Grab the base repo information
repoinfo = parts.split('?')[0];
var [org, repo, ref] = repoinfo.split('/');
newUrl['repo'] = ['https://github.com', org, repo].join('/');
newUrl['branch'] = ref
// Grab extra parameters passed
params = getJsonFromUrl(url);
if (params['filepath'] !== undefined) {
newUrl['subPath'] = params['filepath']
}
return dict2param(newUrl);
}
// Filter out potentially unsafe characters to prevent xss
function safeUrl(url)
{
return String(encodeURIComponent(url))
.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '<')
.replace(/>/g, '>');
}
function addParamToInternalLinks(hub) {
var links = document.querySelectorAll("a").forEach(function(link) {
var href = link.href;
// If the link is an internal link...
if (href.search("https://theotheo.github.io") !== -1 || href.startsWith('/') || href.search("127.0.0.1:") !== -1) {
// Assume we're an internal link, add the hub param to it
var params = getJsonFromUrl(href);
if (params !== false) {
// We have REST params, so append a new one
params['jupyterhub'] = hub;
} else {
// Create the REST params
params = {'jupyterhub': hub};
}
// Update the link
var newHref = href.split('?')[0] + '?' + dict2param(params);
link.setAttribute('href', decodeURIComponent(newHref));
}
});
return false;
}
// Update interact links
function updateInteractLink() {
// hack to make this work since it expects a ? in the URL
rest = getJsonFromUrl("?" + location.search.substr(1));
jupyterHubUrl = rest['jupyterhub'];
var hubType = null;
var hubUrl = null;
if (jupyterHubUrl !== undefined) {
hubType = 'jupyterhub';
hubUrl = jupyterHubUrl;
}
if (hubType !== null) {
// Sanitize the hubUrl
hubUrl = safeUrl(hubUrl);
// Add HTTP text if omitted
if (hubUrl.indexOf('http') < 0) {hubUrl = 'http://' + hubUrl;}
var interactButtons = document.querySelectorAll("button.interact-button")
var lastButton = interactButtons[interactButtons.length-1];
var link = lastButton.parentElement;
// If we've already run this, skip the link updating
if (link.nextElementSibling !== null) {
return;
}
// Update the link and add context div
var href = link.getAttribute('href');
if (lastButton.id === 'interact-button-binder') {
// If binder links exist, we need to re-work them for jupyterhub
if (hubUrl.indexOf('http%3A%2F%2Flocalhost') > -1) {
// If localhost, assume we're working from a local Jupyter server and remove `/hub`
first = [hubUrl, 'git-sync'].join('/')
} else {
first = [hubUrl, 'hub', 'user-redirect', 'git-sync'].join('/')
}
href = first + '?' + binder2Jupyterhub(href);
} else {
// If interact button isn't binderhub, assume it's jupyterhub
// If JupyterHub links, we only need to replace the hub url
href = href.replace("", hubUrl);
if (hubUrl.indexOf('http%3A%2F%2Flocalhost') > -1) {
// Assume we're working from a local Jupyter server and remove `/hub`
href = href.replace("/hub/user-redirect", "");
}
}
link.setAttribute('href', decodeURIComponent(href));
// Add text after interact link saying where we're launching
hubUrlNoHttp = decodeURIComponent(hubUrl).replace('http://', '').replace('https://', '');
link.insertAdjacentHTML('afterend', '<div class="interact-context">on ' + hubUrlNoHttp + '</div>');
// Update internal links so we retain the hub url
addParamToInternalLinks(hubUrl);
}
}
runWhenDOMLoaded(updateInteractLink)
document.addEventListener('turbolinks:load', updateInteractLink)
</script>
<!-- Lunr search code - will only be executed on the /search page -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.6/lunr.min.js" async></script>
<script>var initQuery = function() {
// See if we have a search box
var searchInput = document.querySelector('input#lunr_search');
if (searchInput === null) {
return;
}
// Function to parse our lunr cache
var idx = lunr(function () {
this.field('title')
this.field('excerpt')
this.field('categories')
this.field('tags')
this.ref('id')
this.pipeline.remove(lunr.trimmer)
for (var item in store) {
this.add({
title: store[item].title,
excerpt: store[item].excerpt,
categories: store[item].categories,
tags: store[item].tags,
id: item
})
}
});
// Run search upon keyup
searchInput.addEventListener('keyup', function () {
var resultdiv = document.querySelector('#results');
var query = document.querySelector("input#lunr_search").value.toLowerCase();
var result =
idx.query(function (q) {
query.split(lunr.tokenizer.separator).forEach(function (term) {
q.term(term, { boost: 100 })
if(query.lastIndexOf(" ") != query.length-1){
q.term(term, { usePipeline: false, wildcard: lunr.Query.wildcard.TRAILING, boost: 10 })
}
if (term != ""){
q.term(term, { usePipeline: false, editDistance: 1, boost: 1 })
}
})
});
// Empty the results div
while (resultdiv.firstChild) {
resultdiv.removeChild(resultdiv.firstChild);
}
resultdiv.insertAdjacentHTML('afterbegin', '<p class="results__found">'+result.length+' Result(s) found</p>');
for (var item in result) {
var ref = result[item].ref;
if(store[ref].teaser){
var searchitem =
'<div class="list__item">'+
'<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">'+
'<h2 class="archive__item-title" itemprop="headline">'+
'<a href="'+store[ref].url+'" rel="permalink">'+store[ref].title+'</a>'+
'</h2>'+
'<div class="archive__item-teaser">'+
'<img src="'+store[ref].teaser+'" alt="">'+
'</div>'+
'<p class="archive__item-excerpt" itemprop="description">'+store[ref].excerpt.split(" ").splice(0,20).join(" ")+'...</p>'+
'</article>'+
'</div>';
}
else{
var searchitem =
'<div class="list__item">'+
'<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">'+
'<h2 class="archive__item-title" itemprop="headline">'+
'<a href="'+store[ref].url+'" rel="permalink">'+store[ref].title+'</a>'+
'</h2>'+
'<p class="archive__item-excerpt" itemprop="description">'+store[ref].excerpt.split(" ").splice(0,20).join(" ")+'...</p>'+
'</article>'+
'</div>';
}
resultdiv.insertAdjacentHTML('beforeend', searchitem);
}
});
};
initFunction(initQuery);
</script>
<!-- Load JS that depends on site variables -->
<script src="/pythonsciencebook/assets/js/page/copy-button.js" async></script>
<!-- Hide cell code -->
<script src="/pythonsciencebook/assets/js/page/hide-cell.js" async></script>
<!-- Printing the screen -->
<!-- Include nbinteract for interactive widgets -->
<script src="https://printjs-4de6.kxcdn.com/print.min.js" async></script>
<script>
printContent = () => {
// MathJax displays a second version of any math for assistive devices etc.
// This prevents double-rendering in the PDF output.
var ignoreAssistList = [];
assistives = document.querySelectorAll('.MathJax_Display span.MJX_Assistive_MathML').forEach((element, index) => {
var thisId = 'MathJax-assistive-' + index.toString();
element.setAttribute('id', thisId);
ignoreAssistList.push(thisId)
});
// Print the actual content object
printJS({
printable: 'textbook_content',
type: 'html',
css: "/pythonsciencebook/assets/css/styles.css",
style: "#textbook_content {padding-top: 40px};",
scanStyles: false,
targetStyles: ["*"],
ignoreElements: ignoreAssistList,
documentTitle: "Made with Jupyter Book"
})
};
initPrint = () => {
document.querySelector('#interact-button-print').addEventListener('click', printContent)
}
initFunction(initPrint)
</script>
</head>
<body>
<!-- .js-show-sidebar shows sidebar by default -->
<div id="js-textbook" class="c-textbook js-show-sidebar">
<nav id="js-sidebar" class="c-textbook__sidebar">
<a href="https://jupyterbook.org/"><img src="/pythonsciencebook/images/logo/logo.png" class="textbook_logo" id="sidebar-logo" alt="textbook logo" data-turbolinks-permanent/></a>
<h2 class="c-sidebar__title">Python Science</h2>
<ul class="c-sidebar__chapters">
<li class="c-sidebar__chapter">
<a class="c-sidebar__entry "
href="/pythonsciencebook/intro.html"
>
Home
</a>
</li>
<li class="c-sidebar__chapter">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/intro.html"
>
1.
Python 101
</a>
<ul class="c-sidebar__sections ">
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/history.html"
>
1.1
История
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/tools/jupyter.html"
>
1.2
Jupyter
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/builtins.html"
>
1.3
Builtins
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/control_structures.html"
>
1.4
Контрольные структуры
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/functions/intro.html"
>
1.5
Функции
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/collections.html"
>
1.6
Коллекции
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/comprehensions.html"
>
1.7
Comprehensions
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/introspection/introspection.html"
>
1.8
Интроспекция и рефлексия
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/introspection/sys.html"
>
1.8.1
Модуль sys
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/introspection/reflection.html"
>
1.8.2
Рефлексия
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/introspection/inspect.html"
>
1.8.3
Модуль inspect
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/errors/intro.html"
>
1.9
Исключения
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/errors/exceptions.html"
>
1.9.1
Обработка
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/naming.html"
>
1.10
Именование
</a>
</li>
</ul>
</li>
<li class="c-sidebar__chapter">
<a class="c-sidebar__entry "
href="/pythonsciencebook/not/advanced.html"
>
2.
Advanced Python
</a>
<ul class="c-sidebar__sections ">
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href=".html"
>
2.1
Функции
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/functions/params.html"
>
2.1.1
Params
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/functions/first-class.html"
>
2.1.2
Первоклассные жители
</a>
<li class="c-sidebar__subsection">
<a class="c-sidebar__entry "
href="/pythonsciencebook/ipynb/functions/decorators.html"
>
2.1.3
Декораторы
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/not/packages.html"
>
2.2
Модули и пакеты
</a>
</li>
<li class="c-sidebar__section">
<a class="c-sidebar__entry "
href="/pythonsciencebook/not/functional.html"
>
2.3
Функциональный стиль
</a>
</li>
<li class="c-sidebar__section">