Skip to content

Commit 84735fb

Browse files
committed
Deploy preview for PR 74 🛫
1 parent 29752b8 commit 84735fb

137 files changed

Lines changed: 64871 additions & 20685 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎pr-preview/pr-74/data/candybars-h.csv‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This dataset was created by Hayley Boyce in February 2020.,,,,,,,,,,Note this is not a complete dataset and there are many other candybars that are in existance ,,,,,,,,,,name,weight,chocolate,peanuts,caramel,nougat,cookie_wafer_rice,coconut,white_chocolate,multi,available_canada_americaCoffee Crisp,50,1,0,0,0,1,0,0,0,CanadaButterfinger,184,1,1,1,0,0,0,0,0,AmericaSkor,39,1,0,1,0,0,0,0,0,BothSmarties,45,1,0,0,0,0,0,0,1,CanadaTwix,58,1,0,1,0,1,0,0,1,BothReeses Peanutbutter Cups ,43,1,1,0,0,0,0,0,1,Both3 Musketeers,54,1,0,0,1,0,0,0,0,AmericaKinder Surprise,20,1,0,0,0,0,0,1,0,CanadaM & M,48,1,1,0,0,0,0,0,1,BothGlosettes,50,1,0,0,0,0,0,0,1,CanadaKitKat,45,1,0,0,0,1,0,0,1,BothBabe Ruth,60,1,1,1,1,0,0,0,0,AmericaCaramilk,52,1,0,1,0,0,0,0,0,CanadaAero,42,1,0,0,0,0,0,0,0,CanadaMars,51,1,0,1,1,0,0,0,0,BothPayday,52,0,1,1,0,0,0,0,0,AmericaSnickers,48,1,1,1,1,0,0,0,0,BothCrunchie,26,1,0,0,0,0,0,0,0,CanadaWonderbar ,58,1,1,1,0,0,0,0,0,Canada100 Grand ,43,1,0,1,0,1,0,0,0,AmericaTake 5,43,1,1,1,0,1,0,0,0,AmericaWhatchamacallits,45,1,1,0,0,1,0,0,0,AmericaAlmond Joy,46,1,0,0,0,0,1,0,0,AmericaOh Henry,51,1,1,1,0,0,0,0,0,BothCookies and Cream,43,0,0,0,0,1,0,1,0,Both
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name weight chocolate peanuts caramel nougat cookie_wafer_rice coconut white_chocolate multi available_canada_america
2+
Coffee Crisp 50 1 0 0 0 1 0 0 0 Canada
3+
Butterfinger 184 1 1 1 0 0 0 0 0 America
4+
Skor 39 1 0 1 0 0 0 0 0 Both
5+
Smarties 45 1 0 0 0 0 0 0 1 Canada
6+
Twix 58 1 0 1 0 1 0 0 1 Both
7+
Reeses Peanutbutter Cups 43 1 1 0 0 0 0 0 1 Both
8+
3 Musketeers 54 1 0 0 1 0 0 0 0 America
9+
Kinder Surprise 20 1 0 0 0 0 0 1 0 Canada
10+
M & M 48 1 1 0 0 0 0 0 1 Both
11+
Glosettes 50 1 0 0 0 0 0 0 1 Canada
12+
KitKat 45 1 0 0 0 1 0 0 1 Both
13+
Babe Ruth 60 1 1 1 1 0 0 0 0 America
14+
Caramilk 52 1 0 1 0 0 0 0 0 Canada
15+
Aero 42 1 0 0 0 0 0 0 0 Canada
16+
Mars 51 1 0 1 1 0 0 0 0 Both
17+
Payday 52 0 1 1 0 0 0 0 0 America
18+
Snickers 48 1 1 1 1 0 0 0 0 Both
19+
Crunchie 26 1 0 0 0 0 0 0 0 Canada
20+
Wonderbar 58 1 1 1 0 0 0 0 0 Canada
21+
100 Grand 43 1 0 1 0 1 0 0 0 America
22+
Take 5 43 1 1 1 0 1 0 0 0 America
23+
Whatchamacallits 45 1 1 0 0 1 0 0 0 America
24+
Almond Joy 46 1 0 0 0 0 1 0 0 America
25+
Oh Henry 51 1 1 1 0 0 0 0 0 Both
26+
Cookies and Cream 43 0 0 0 0 1 0 1 0 Both
13.8 KB
Binary file not shown.

‎pr-preview/pr-74/modules/index.html‎

Lines changed: 507 additions & 359 deletions
Large diffs are not rendered by default.

‎pr-preview/pr-74/modules/module0/module0-01-programming_in_python_for_data_science.html‎

Lines changed: 507 additions & 359 deletions
Large diffs are not rendered by default.

‎pr-preview/pr-74/modules/module0/module0-02-are_you_ready.html‎

Lines changed: 507 additions & 359 deletions
Large diffs are not rendered by default.

‎pr-preview/pr-74/modules/module0/slides/module0_01.html‎

Lines changed: 173 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<script src="../../../site_libs/quarto-html/tippy.umd.min.js"></script>
77
<link href="../../../site_libs/quarto-html/tippy.css" rel="stylesheet">
88
<link href="../../../site_libs/quarto-html/light-border.css" rel="stylesheet">
9-
<link href="../../../site_libs/quarto-html/quarto-syntax-highlighting-f428fda71a3abb5b1b9c21151da8fd61.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
10-
<meta name="generator" content="quarto-1.7.31">
9+
<link href="../../../site_libs/quarto-html/quarto-syntax-highlighting-99fa6729ad23987aafeada22b1565191.css" rel="stylesheet" id="quarto-text-highlighting-styles"><meta charset="utf-8">
10+
<meta name="generator" content="quarto-1.6.43">
1111

1212
<title>Programming in Python for Data Science – Welcome!</title>
1313
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -28,7 +28,7 @@
2828
vertical-align: middle;
2929
}
3030
</style>
31-
<link rel="stylesheet" href="../../../site_libs/revealjs/dist/theme/quarto-9e8648d635e9243aca7e7f6e62d4a487.css">
31+
<link rel="stylesheet" href="../../../site_libs/revealjs/dist/theme/quarto-02ec553455131a570a2f3558585aef54.css">
3232
<link href="../../../site_libs/revealjs/plugin/quarto-line-highlight/line-highlight.css" rel="stylesheet">
3333
<link href="../../../site_libs/revealjs/plugin/reveal-menu/menu.css" rel="stylesheet">
3434
<link href="../../../site_libs/revealjs/plugin/reveal-menu/quarto-menu.css" rel="stylesheet">
@@ -386,172 +386,190 @@ <h1>Let’s learn Programming in Python for Data Science</h1>
386386
});
387387
</script>
388388
<script id="quarto-html-after-body" type="application/javascript">
389-
window.document.addEventListener("DOMContentLoaded", function (event) {
390-
const tabsets = window.document.querySelectorAll(".panel-tabset-tabby")
391-
tabsets.forEach(function(tabset) {
392-
const tabby = new Tabby('#' + tabset.id);
393-
});
394-
const isCodeAnnotation = (el) => {
395-
for (const clz of el.classList) {
396-
if (clz.startsWith('code-annotation-')) {
397-
return true;
398-
}
399-
}
400-
return false;
389+
window.document.addEventListener("DOMContentLoaded", function (event) {
390+
const toggleBodyColorMode = (bsSheetEl) => {
391+
const mode = bsSheetEl.getAttribute("data-mode");
392+
const bodyEl = window.document.querySelector("body");
393+
if (mode === "dark") {
394+
bodyEl.classList.add("quarto-dark");
395+
bodyEl.classList.remove("quarto-light");
396+
} else {
397+
bodyEl.classList.add("quarto-light");
398+
bodyEl.classList.remove("quarto-dark");
401399
}
402-
const onCopySuccess = function(e) {
403-
// button target
404-
const button = e.trigger;
405-
// don't keep focus
406-
button.blur();
407-
// flash "checked"
408-
button.classList.add('code-copy-button-checked');
409-
var currentTitle = button.getAttribute("title");
410-
button.setAttribute("title", "Copied!");
411-
let tooltip;
412-
if (window.bootstrap) {
413-
button.setAttribute("data-bs-toggle", "tooltip");
414-
button.setAttribute("data-bs-placement", "left");
415-
button.setAttribute("data-bs-title", "Copied!");
416-
tooltip = new bootstrap.Tooltip(button,
417-
{ trigger: "manual",
418-
customClass: "code-copy-button-tooltip",
419-
offset: [0, -8]});
420-
tooltip.show();
421-
}
422-
setTimeout(function() {
423-
if (tooltip) {
424-
tooltip.hide();
425-
button.removeAttribute("data-bs-title");
426-
button.removeAttribute("data-bs-toggle");
427-
button.removeAttribute("data-bs-placement");
428-
}
429-
button.setAttribute("title", currentTitle);
430-
button.classList.remove('code-copy-button-checked');
431-
}, 1000);
432-
// clear code selection
433-
e.clearSelection();
400+
}
401+
const toggleBodyColorPrimary = () => {
402+
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
403+
if (bsSheetEl) {
404+
toggleBodyColorMode(bsSheetEl);
434405
}
435-
const getTextToCopy = function(trigger) {
436-
const codeEl = trigger.previousElementSibling.cloneNode(true);
437-
for (const childEl of codeEl.children) {
438-
if (isCodeAnnotation(childEl)) {
439-
childEl.remove();
440-
}
441-
}
442-
return codeEl.innerText;
406+
}
407+
toggleBodyColorPrimary();
408+
const tabsets = window.document.querySelectorAll(".panel-tabset-tabby")
409+
tabsets.forEach(function(tabset) {
410+
const tabby = new Tabby('#' + tabset.id);
411+
});
412+
const isCodeAnnotation = (el) => {
413+
for (const clz of el.classList) {
414+
if (clz.startsWith('code-annotation-')) {
415+
return true;
416+
}
443417
}
444-
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
445-
text: getTextToCopy
446-
});
447-
clipboard.on('success', onCopySuccess);
448-
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
449-
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
450-
text: getTextToCopy,
451-
container: window.document.getElementById('quarto-embedded-source-code-modal')
452-
});
453-
clipboardModal.on('success', onCopySuccess);
418+
return false;
419+
}
420+
const onCopySuccess = function(e) {
421+
// button target
422+
const button = e.trigger;
423+
// don't keep focus
424+
button.blur();
425+
// flash "checked"
426+
button.classList.add('code-copy-button-checked');
427+
var currentTitle = button.getAttribute("title");
428+
button.setAttribute("title", "Copied!");
429+
let tooltip;
430+
if (window.bootstrap) {
431+
button.setAttribute("data-bs-toggle", "tooltip");
432+
button.setAttribute("data-bs-placement", "left");
433+
button.setAttribute("data-bs-title", "Copied!");
434+
tooltip = new bootstrap.Tooltip(button,
435+
{ trigger: "manual",
436+
customClass: "code-copy-button-tooltip",
437+
offset: [0, -8]});
438+
tooltip.show();
454439
}
455-
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
456-
var mailtoRegex = new RegExp(/^mailto:/);
457-
var filterRegex = new RegExp('/' + window.location.host + '/');
458-
var isInternal = (href) => {
459-
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
440+
setTimeout(function() {
441+
if (tooltip) {
442+
tooltip.hide();
443+
button.removeAttribute("data-bs-title");
444+
button.removeAttribute("data-bs-toggle");
445+
button.removeAttribute("data-bs-placement");
460446
}
461-
// Inspect non-navigation links and adorn them if external
462-
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
463-
for (var i=0; i<links.length; i++) {
464-
const link = links[i];
465-
if (!isInternal(link.href)) {
466-
// undo the damage that might have been done by quarto-nav.js in the case of
467-
// links that we want to consider external
468-
if (link.dataset.originalHref !== undefined) {
469-
link.href = link.dataset.originalHref;
470-
}
447+
button.setAttribute("title", currentTitle);
448+
button.classList.remove('code-copy-button-checked');
449+
}, 1000);
450+
// clear code selection
451+
e.clearSelection();
452+
}
453+
const getTextToCopy = function(trigger) {
454+
const codeEl = trigger.previousElementSibling.cloneNode(true);
455+
for (const childEl of codeEl.children) {
456+
if (isCodeAnnotation(childEl)) {
457+
childEl.remove();
471458
}
472459
}
473-
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
474-
const config = {
475-
allowHTML: true,
476-
maxWidth: 500,
477-
delay: 100,
478-
arrow: false,
479-
appendTo: function(el) {
480-
return el.closest('section.slide') || el.parentElement;
481-
},
482-
interactive: true,
483-
interactiveBorder: 10,
484-
theme: 'light-border',
485-
placement: 'bottom-start',
486-
};
487-
if (contentFn) {
488-
config.content = contentFn;
489-
}
490-
if (onTriggerFn) {
491-
config.onTrigger = onTriggerFn;
492-
}
493-
if (onUntriggerFn) {
494-
config.onUntrigger = onUntriggerFn;
495-
}
496-
config['offset'] = [0,0];
497-
config['maxWidth'] = 700;
498-
window.tippy(el, config);
460+
return codeEl.innerText;
461+
}
462+
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
463+
text: getTextToCopy
464+
});
465+
clipboard.on('success', onCopySuccess);
466+
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
467+
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
468+
text: getTextToCopy,
469+
container: window.document.getElementById('quarto-embedded-source-code-modal')
470+
});
471+
clipboardModal.on('success', onCopySuccess);
472+
}
473+
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
474+
var mailtoRegex = new RegExp(/^mailto:/);
475+
var filterRegex = new RegExp('/' + window.location.host + '/');
476+
var isInternal = (href) => {
477+
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
499478
}
500-
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
501-
for (var i=0; i<noterefs.length; i++) {
502-
const ref = noterefs[i];
503-
tippyHover(ref, function() {
504-
// use id or data attribute instead here
505-
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
506-
try { href = new URL(href).hash; } catch {}
507-
const id = href.replace(/^#\/?/, "");
508-
const note = window.document.getElementById(id);
509-
if (note) {
510-
return note.innerHTML;
511-
} else {
512-
return "";
479+
// Inspect non-navigation links and adorn them if external
480+
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
481+
for (var i=0; i<links.length; i++) {
482+
const link = links[i];
483+
if (!isInternal(link.href)) {
484+
// undo the damage that might have been done by quarto-nav.js in the case of
485+
// links that we want to consider external
486+
if (link.dataset.originalHref !== undefined) {
487+
link.href = link.dataset.originalHref;
513488
}
514-
});
489+
}
515490
}
516-
const findCites = (el) => {
517-
const parentEl = el.parentElement;
518-
if (parentEl) {
519-
const cites = parentEl.dataset.cites;
520-
if (cites) {
521-
return {
522-
el,
523-
cites: cites.split(' ')
524-
};
525-
} else {
526-
return findCites(el.parentElement)
527-
}
491+
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
492+
const config = {
493+
allowHTML: true,
494+
maxWidth: 500,
495+
delay: 100,
496+
arrow: false,
497+
appendTo: function(el) {
498+
return el.closest('section.slide') || el.parentElement;
499+
},
500+
interactive: true,
501+
interactiveBorder: 10,
502+
theme: 'light-border',
503+
placement: 'bottom-start',
504+
};
505+
if (contentFn) {
506+
config.content = contentFn;
507+
}
508+
if (onTriggerFn) {
509+
config.onTrigger = onTriggerFn;
510+
}
511+
if (onUntriggerFn) {
512+
config.onUntrigger = onUntriggerFn;
513+
}
514+
config['offset'] = [0,0];
515+
config['maxWidth'] = 700;
516+
window.tippy(el, config);
517+
}
518+
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
519+
for (var i=0; i<noterefs.length; i++) {
520+
const ref = noterefs[i];
521+
tippyHover(ref, function() {
522+
// use id or data attribute instead here
523+
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
524+
try { href = new URL(href).hash; } catch {}
525+
const id = href.replace(/^#\/?/, "");
526+
const note = window.document.getElementById(id);
527+
if (note) {
528+
return note.innerHTML;
528529
} else {
529-
return undefined;
530+
return "";
530531
}
531-
};
532-
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
533-
for (var i=0; i<bibliorefs.length; i++) {
534-
const ref = bibliorefs[i];
535-
const citeInfo = findCites(ref);
536-
if (citeInfo) {
537-
tippyHover(citeInfo.el, function() {
538-
var popup = window.document.createElement('div');
539-
citeInfo.cites.forEach(function(cite) {
540-
var citeDiv = window.document.createElement('div');
541-
citeDiv.classList.add('hanging-indent');
542-
citeDiv.classList.add('csl-entry');
543-
var biblioDiv = window.document.getElementById('ref-' + cite);
544-
if (biblioDiv) {
545-
citeDiv.innerHTML = biblioDiv.innerHTML;
546-
}
547-
popup.appendChild(citeDiv);
548-
});
549-
return popup.innerHTML;
550-
});
532+
});
533+
}
534+
const findCites = (el) => {
535+
const parentEl = el.parentElement;
536+
if (parentEl) {
537+
const cites = parentEl.dataset.cites;
538+
if (cites) {
539+
return {
540+
el,
541+
cites: cites.split(' ')
542+
};
543+
} else {
544+
return findCites(el.parentElement)
551545
}
546+
} else {
547+
return undefined;
552548
}
553-
});
554-
</script>
549+
};
550+
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
551+
for (var i=0; i<bibliorefs.length; i++) {
552+
const ref = bibliorefs[i];
553+
const citeInfo = findCites(ref);
554+
if (citeInfo) {
555+
tippyHover(citeInfo.el, function() {
556+
var popup = window.document.createElement('div');
557+
citeInfo.cites.forEach(function(cite) {
558+
var citeDiv = window.document.createElement('div');
559+
citeDiv.classList.add('hanging-indent');
560+
citeDiv.classList.add('csl-entry');
561+
var biblioDiv = window.document.getElementById('ref-' + cite);
562+
if (biblioDiv) {
563+
citeDiv.innerHTML = biblioDiv.innerHTML;
564+
}
565+
popup.appendChild(citeDiv);
566+
});
567+
return popup.innerHTML;
568+
});
569+
}
570+
}
571+
});
572+
</script>
555573

556574

557575
</body></html>

0 commit comments

Comments
 (0)