77< meta name ="viewport " content ="width=device-width, initial-scale=1.0, user-scalable=yes ">
88
99
10- < title > 10 Dependencies – Python Course</ title >
10+ < title > 11 Dependencies – Python Course</ title >
1111< style >
1212code {white-space : pre-wrap;}
1313span .smallcaps {font-variant : small-caps;}
6565< script src ="site_libs/quarto-search/fuse.min.js "> </ script >
6666< script src ="site_libs/quarto-search/quarto-search.js "> </ script >
6767< meta name ="quarto:offset " content ="./ ">
68- < link href ="./062_read_and_write .html " rel ="next ">
69- < link href ="./06_imports .html " rel ="prev ">
68+ < link href ="./063_common_data_formats .html " rel ="next ">
69+ < link href ="./062_read_and_write .html " rel ="prev ">
7070< link href ="././favicon.svg " rel ="icon " type ="image/svg+xml ">
7171< script src ="site_libs/quarto-html/quarto.js " type ="module "> </ script >
7272< script src ="site_libs/quarto-html/tabsets/tabsets.js " type ="module "> </ script >
197197 < button type ="button " class ="quarto-btn-toggle btn " data-bs-toggle ="collapse " role ="button " data-bs-target =".quarto-sidebar-collapse-item " aria-controls ="quarto-sidebar " aria-expanded ="false " aria-label ="Toggle sidebar navigation " onclick ="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); } ">
198198 < i class ="bi bi-layout-text-sidebar-reverse "> </ i >
199199 </ button >
200- < nav class ="quarto-page-breadcrumbs " aria-label ="breadcrumb "> < ol class ="breadcrumb "> < li class ="breadcrumb-item "> < a href ="./061_dependencies.html "> < span class ="chapter-number "> 10 </ span > < span class ="chapter-title "> Dependencies</ span > </ a > </ li > </ ol > </ nav >
200+ < nav class ="quarto-page-breadcrumbs " aria-label ="breadcrumb "> < ol class ="breadcrumb "> < li class ="breadcrumb-item "> < a href ="./061_dependencies.html "> < span class ="chapter-number "> 11 </ span > < span class ="chapter-title "> Dependencies</ span > </ a > </ li > </ ol > </ nav >
201201 < a class ="flex-grow-1 " role ="navigation " data-bs-toggle ="collapse " data-bs-target =".quarto-sidebar-collapse-item " aria-controls ="quarto-sidebar " aria-expanded ="false " aria-label ="Toggle sidebar navigation " onclick ="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); } ">
202202 </ a >
203203 </ div >
275275</ li >
276276 < li class ="sidebar-item ">
277277 < div class ="sidebar-item-container ">
278- < a href ="./061_dependencies .html " class ="sidebar-item-text sidebar-link active ">
279- < span class ="menu-text "> < span class ="chapter-number "> 10</ span > < span class ="chapter-title "> Dependencies </ span > </ span > </ a >
278+ < a href ="./062_read_and_write .html " class ="sidebar-item-text sidebar-link ">
279+ < span class ="menu-text "> < span class ="chapter-number "> 10</ span > < span class ="chapter-title "> Read/Write Files </ span > </ span > </ a >
280280 </ div >
281281</ li >
282282 < li class ="sidebar-item ">
283283 < div class ="sidebar-item-container ">
284- < a href ="./062_read_and_write .html " class ="sidebar-item-text sidebar-link ">
285- < span class ="menu-text "> < span class ="chapter-number "> 11</ span > < span class ="chapter-title "> Read/Write Files </ span > </ span > </ a >
284+ < a href ="./061_dependencies .html " class ="sidebar-item-text sidebar-link active ">
285+ < span class ="menu-text "> < span class ="chapter-number "> 11</ span > < span class ="chapter-title "> Dependencies </ span > </ span > </ a >
286286 </ div >
287287</ li >
288288 < li class ="sidebar-item ">
373373 < h2 id ="toc-title "> Table of contents</ h2 >
374374
375375 < ul >
376- < li > < a href ="#managing-dependencies " id ="toc-managing-dependencies " class ="nav-link active " data-scroll-target ="#managing-dependencies "> < span class ="header-section-number "> 10 .1</ span > Managing dependencies</ a > </ li >
376+ < li > < a href ="#managing-dependencies " id ="toc-managing-dependencies " class ="nav-link active " data-scroll-target ="#managing-dependencies "> < span class ="header-section-number "> 11 .1</ span > Managing dependencies</ a > </ li >
377377 </ ul >
378378</ nav >
379379 </ div >
@@ -382,7 +382,7 @@ <h2 id="toc-title">Table of contents</h2>
382382
383383< header id ="title-block-header " class ="quarto-title-block default ">
384384< div class ="quarto-title ">
385- < h1 class ="title "> < span class ="chapter-number "> 10 </ span > < span class ="chapter-title "> Dependencies</ span > </ h1 >
385+ < h1 class ="title "> < span class ="chapter-number "> 11 </ span > < span class ="chapter-title "> Dependencies</ span > </ h1 >
386386</ div >
387387
388388
@@ -404,8 +404,8 @@ <h1 class="title"><span class="chapter-number">10</span> <span class="chap
404404< p > These are open-source libraries maintained mostly by voluntary contributions of people of the community – and you can also contribute to them!</ p >
405405< p > They are being actively developed and thus in permanent evolution. In order to avoid compatibility problems and to ensure reproducibility, we might want to specify the exact versions of the packages we use. It turns out that is not an easy problem and the reason why need a < strong > package manager</ strong > .</ p >
406406< p > The good news is that < code > uv</ code > does that for us too.</ p >
407- < section id ="managing-dependencies " class ="level2 " data-number ="10 .1 ">
408- < h2 data-number ="10 .1 " class ="anchored " data-anchor-id ="managing-dependencies "> < span class ="header-section-number "> 10 .1</ span > Managing dependencies</ h2 >
407+ < section id ="managing-dependencies " class ="level2 " data-number ="11 .1 ">
408+ < h2 data-number ="11 .1 " class ="anchored " data-anchor-id ="managing-dependencies "> < span class ="header-section-number "> 11 .1</ span > Managing dependencies</ h2 >
409409< p > The standard to specify dependencies (and other things) in python projects is to use a file called < a href ="https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ "> < code > pyproject.toml</ code > </ a > that looks like this:</ p >
410410< div class ="code-copy-outer-scaffold "> < div class ="sourceCode " id ="cb1 "> < pre class ="sourceCode yaml code-with-copy "> < code class ="sourceCode yaml "> < span id ="cb1-1 "> < a href ="#cb1-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="kw "> [</ span > < span class ="at "> project</ span > < span class ="kw "> ]</ span > </ span >
411411< span id ="cb1-2 "> < a href ="#cb1-2 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="at "> name = "example_package_name"</ span > </ span >
@@ -871,13 +871,13 @@ <h2 data-number="10.1" class="anchored" data-anchor-id="managing-dependencies"><
871871 </ script >
872872< nav class ="page-navigation ">
873873 < div class ="nav-page nav-page-previous ">
874- < a href ="./06_imports .html " class ="pagination-link " aria-label ="Importing Code ">
875- < i class ="bi bi-arrow-left-short "> </ i > < span class ="nav-page-text "> < span class ="chapter-number "> 9 </ span > < span class ="chapter-title "> Importing Code </ span > </ span >
874+ < a href ="./062_read_and_write .html " class ="pagination-link " aria-label ="Read/Write Files ">
875+ < i class ="bi bi-arrow-left-short "> </ i > < span class ="nav-page-text "> < span class ="chapter-number "> 10 </ span > < span class ="chapter-title "> Read/Write Files </ span > </ span >
876876 </ a >
877877 </ div >
878878 < div class ="nav-page nav-page-next ">
879- < a href ="./062_read_and_write .html " class ="pagination-link " aria-label ="Read/Write Files ">
880- < span class ="nav-page-text "> < span class ="chapter-number "> 11 </ span > < span class ="chapter-title "> Read/Write Files </ span > </ span > < i class ="bi bi-arrow-right-short "> </ i >
879+ < a href ="./063_common_data_formats .html " class ="pagination-link " aria-label ="Common Data Formats ">
880+ < span class ="nav-page-text "> < span class ="chapter-number "> 12 </ span > < span class ="chapter-title "> Common Data Formats </ span > </ span > < i class ="bi bi-arrow-right-short "> </ i >
881881 </ a >
882882 </ div >
883883</ nav >
0 commit comments