PageSourceSearch

https://deepnote.com/_next/static/chunks/3272-f1fe639797d159d4.js

js deepnote.com collected 2026-10-01 10:27:26 UTC 13,705 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3272],{13341:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},37211:(e,t,r)=>{"use strict";var n=r(13341),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,o,l,s,c,d,u,p=!1;t||(t={}),o=t.debug||!1;try{if(s=n(),c=document.createRange(),d=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[t.format]||i.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(u),c.selectNodeContents(u),d.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(n){o&&console.error("unable to copy using execCommand: ",n),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),p=!0}catch(n){o&&console.error("unable to copy using clipboardData: ",n),o&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=r.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{d&&("function"==typeof d.removeRange?d.removeRange(c):d.removeAllRanges()),u&&document.body.removeChild(u),s()}return p}},44878:(e,t,r)=>{"use strict";r.d(t,{S:()=>u});var n=r(57260),i=r(79363),a=r(46195),o=r(69236),l=r(53239),s=r(80263),c={exit:{height:{duration:.2,ease:n.xf.ease},opacity:{duration:.3,ease:n.xf.ease}},enter:{height:{duration:.3,ease:n.xf.ease},opacity:{duration:.4,ease:n.xf.ease}}},d={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:i,delay:a})=>{var o;return{...e&&{opacity:+!!(null!=t&&parseInt(t.toString(),10)>0)},height:t,transitionEnd:null==i?void 0:i.exit,transition:null!=(o=null==r?void 0:r.exit)?o:n.yA.exit(c.exit,a)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:i,delay:a})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:null==i?void 0:i.enter,transition:null!=(o=null==r?void 0:r.enter)?o:n.yA.enter(c.enter,a)}}},u=(0,l.forwardRef)((e,t)=>{let{in:r,unmountOnExit:n,animateOpacity:c=!0,startingHeight:u=0,endingHeight:p="auto",style:h,className:m,transition:g,transitionEnd:x,...f}=e,[v,y]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=setTimeout(()=>{y(!0)});return()=>clearTimeout(e)},[]),(0,i.R8)({condition:Number(u)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});let b=parseFloat(u.toString())>0,j={startingHeight:u,endingHeight:p,animateOpacity:c,transition:v?g:{enter:{duration:0}},transitionEnd:{enter:null==x?void 0:x.enter,exit:n?null==x?void 0:x.exit:{...null==x?void 0:x.exit,display:b?"block":"none"}}},C=!n||r,w=r||n?"enter":"exit";return(0,s.jsx)(a.N,{initial:!1,custom:j,children:C&&(0,s.jsx)(o.P.div,{ref:t,...f,className:(0,i.cx)("chakra-collapse",m),style:{overflow:"hidden",display:"block",...h},custom:j,variants:d,initial:!!n&&"exit",animate:w,exit:"exit"})})});u.displayName="Collapse"},56247:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(53239),i=r(96234),a=r(46017);function o(e={}){var t;let r,l,{onClose:s,onOpen:c,isOpen:d,id:u}
1=e,p=(0,i.c)(c),h=(0,i.c)(s),[m,g]=(0,n.useState)(e.defaultIsOpen||!1),[x,f]=[r=void 0!==d,r&&void 0!==d?d:m],v=(t="disclosure",l=(0,n.useId)(),(0,n.useMemo)(()=>u||[t,l].filter(Boolean).join("-"),[u,t,l])),y=(0,n.useCallback)(()=>{x||g(!1),null==h||h()},[x,h]),b=(0,n.useCallback)(()=>{x||g(!0),null==p||p()},[x,p]),j=(0,n.useCallback)(()=>{(f?y:b)()},[f,b,y]);return{isOpen:!!f,onOpen:b,onClose:y,onToggle:j,isControlled:x,getButtonProps:(e={})=>({...e,"aria-expanded":f,"aria-controls":v,onClick:(0,a.Hj)(e.onClick,j)}),getDisclosureProps:(e={})=>({...e,hidden:!f,id:v})}}},57164:(e,t,r)=>{"use strict";r.d(t,{xe:()=>N,V8:()=>j});var n=r(80263),i=r(95156),a=r(48205),o=r(52359),l=r(35209),s=r(2483),c=r(81548),d=r(33696),u=r(68453),p=r(9044),h=r(27253),m=r(8627),g=r(69611);function x({icon:e,width:t=6,onClick:r}){return(0,n.jsx)(h.B.button,{onClick:r,color:"fg.neutral.tertiary",_hover:{color:"fg.accentOne.primaryHover"},transition:"color 120ms ease",children:(0,n.jsx)(s.I,{width:t,height:t,as:e})})}function f({type:e="blog",slug:t,title:r,...i}){return(0,n.jsxs)(h.B.div,{...i,children:[(0,n.jsxs)(m.E,{textStyle:"ui.md.semibold",color:"fg.neutral.tertiary",mb:4,children:["Share this ",e]}),(0,n.jsxs)(h.B.div,{display:"flex",flexWrap:"wrap",gap:4,alignItems:"center",children:[(0,n.jsx)(x,{icon:c.J,onClick:()=>(0,p.uA)(t,r,"deepnote","DeepnoteHQ")}),(0,n.jsx)(x,{icon:d._,width:5,onClick:()=>(0,p.He)(t,r)}),(0,n.jsx)(x,{icon:u.A,width:5,onClick:()=>(0,p.AT)({toastHandler:g.i.info})})]})]})}var v=r(18061),y=r(15100);let b={biography:"Nick has been interested in data science ever since he recorded all his poops in spreadsheet, and found that on average, he pooped 1.41 times per day.  When he isn't coding, or writing content, he spends his time enjoying various leisurely pursuits.",createdAt:"2023-12-06T12:21:56.541524+00:00",github:"https://github.com/nick-barth",slug:"nick-barth",id:"clptqo2it3ovr0bn4l3qu3o6j",linkedIn:"https://www.linkedin.com/in/nicholasbarth/",name:"Nick Barth",title:"Product Engineer",twitter:null,picture:{url:"https://media.graphassets.com/resize=fit:clip,width:300/output=format:webp/sRI4I8WMTBaFoRy5KOiJ"}};function j({guide:e}){let t=e.author||b;return(0,n.jsxs)(v.n$,{children:[(0,n.jsx)(v.Kt,{children:(0,n.jsx)(l.J,{href:i.J.guides(),children:"← Back to all guides"})}),(0,n.jsx)(v.uU,{title:e.title,authors:[t],date:e.updatedAt}),(0,n.jsxs)(v.EG,{children:[(0,n.jsx)(y.F,{html:e.content.html}),(0,n.jsx)(o.I,{faqSection:e.faqSection??null}),t?(0,n.jsx)(a._,{authors:[t]}):null]}),(0,n.jsx)(v.Ap,{children:(0,n.jsx)(f,{slug:e.slug,type:"guide",title:e.title})})]})}var C=r(28486);let w=(0,C.w)({displayName:"File02LineIcon",viewBox:"0 0 24 24",path:(0,n.jsx)("g",{fill:"none",children:(0,n.jsx)("path",{d:"M14 11H8M10 15H8M16 7H8M20 6.8V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V6.8C4 5.11984 4 4.27976 4.32698 3.63803C4.6146 3.07354 5.07354 2.6146 5.63803 2.32698C6.27976 2 7.11984 2 8.8 2H15.2C16.8802 2 17.7202 2 18.362 2.32698C18.9265 2.6146 19.3854 3.07354 19.673 3.63803C20 4.27976 20 5.11984 20 6.8Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),k=(0,C.w)({displayName:"ChevronRightLineIcon",viewBox:"0 0 24 24",path:(0,n.jsx)("g",{fill:"none",children:(0,n.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})});var B=r(89824),S=r(44837),A=r(80787);function N({guides:e}){let t=[...e],r=t.map(e=>({title:e.title,slug:e.slug}));return(0,n.jsxs)(B.m,{py:24,children:[(0,n.jsxs)(h.B.div,{margin:"auto",textAlign:"center",width:"100%",alignItems:"center",justifyContent:"center",children:[(0,n.jsx)(h.B.h1,{textStyle:"display1",mb:6,children:"Guides"}),(0,n.jsx)("p",{children:"Check out ready-to-run tutorials to get started with Deepnote"})]}),(0,n.jsxs)(v.n$,{children:[(0,n.jsx)(v.EG,{children:t.map((e,t)=>(0,n.jsxs)(h.B.section,{scrollMarginTop:16,marginTop:8*(0!==t),id:`#${e.slug}`,children:[(0,n.jsx)(h.B.h2,{mb:3,textStyle:"h3",children:e.title}),(0,n.jsx)(h.B.p,{color:"fg.neutral.secondary",fontSize:"ui.sm",mb:4,children:e.description}),e.guideSubCategories.map(t=>(0,n.jsxs)(h.B.div,{children:[(0,n.jsx)(h.B.h3,{fontSize:"ui.md",fontWeight:"bold",textTransform:"capitalize",py:2,children:t.title}),(0,n.jsx)(h.B.ol,{border:"1px solid",borderColor:"border.neutral.primary",rounded:"md",paddingX:2,margin:"0",display:"flex",flexDir:"column",marginBottom:4,children:t.guides.map((r,a)=>{let o=i.J.guidesPost(`${e.slug}/${r.slug}`),l=a===t.guides.length-1;return(0,n.jsx)(S.N,{href:o,children:(0,n.jsx)(h.B.li,{borderBottom:l?"none":"1px solid",borderBottomColor:"border.neutral.primary",padding:"0",margin:"0",listStyleType:"none",width:"full",children:(0,n.jsxs)(h.B.div,{roun
1ded:"md",_hover:{bg:"bg.neutral.primaryHover"},display:"flex",justifyContent:"space-between",p:2,my:2,alignItems:"center",cursor:"pointer",children:[(0,n.jsxs)(h.B.div,{fontSize:"ui.md",color:"fg.neutral.primary",display:"flex",gap:2,alignItems:"center",overflow:"hidden",children:[(0,n.jsx)(s.I,{as:w,color:"fg.accentOne.primary",w:4,h:4}),(0,n.jsx)(h.B.h4,{flexWrap:"nowrap",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",children:r.title})]}),(0,n.jsx)(s.I,{as:k,color:"fg.neutral.secondary",w:4,h:4,ml:2,flexShrink:0})]})})},r.slug)})})]},`${e.slug}/${t.slug}`))]},e.slug))}),(0,n.jsx)(v.Ap,{children:(0,n.jsx)("ol",{children:r.map(e=>(0,n.jsx)(A.T,{cursor:"pointer",isActive:!1,onClick:()=>(e=>{if(!e)return;let t=document.getElementById(`#${e}`);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})(e.slug),_hover:{color:"fg.accentOne.primary",bg:"bg.neutral.primaryHover"},children:e.title},e.slug))})})]})]})}},80787:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(80263),i=r(39135);function a({children:e,isActive:t,...r}){return(0,n.jsx)(i.az,{display:"flex",px:3,py:1.5,borderRadius:"md",color:t?"fg.accentOne.primary":"fg.neutral.primary",bg:t?"bg.accentOne.tertiary":"transparent",_hover:{bg:t?"bg.accentOne.tertiary":"bg.neutral.primaryHover"},textStyle:"p-sm",fontWeight:t?600:500,transition:"all 200ms",position:"relative",_before:{content:t?'""':"none",position:"absolute",left:0,top:"5%",bottom:"5%",width:"3px",bg:"brand.primary",borderRadius:"0 2px 2px 0"},...r,children:e})}},83852:(e,t,r)=>{"use strict";r.d(t,{e:()=>v});var[n,i]=(0,r(37446).q)({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"}),a=r(27253),o=r(80263);function l(e){var t;let r=e.split(" "),n=null!=(t=r[0])?t:"",i=r.length>1?r[r.length-1]:"";return n&&i?`${n.charAt(0)}${i.charAt(0)}`:n.charAt(0)}function s(e){let{name:t,getInitials:r,...n}=e,l=i();return(0,o.jsx)(a.B.div,{role:"img","aria-label":t,...n,__css:l.label,children:t?null==r?void 0:r(t):null})}s.displayName="AvatarName";var c=e=>(0,o.jsxs)(a.B.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[(0,o.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),d=r(7995),u=r(53239);function p(e){let{src:t,srcSet:r,onError:n,onLoad:i,getInitials:l,name:p,borderRadius:h,loading:m,iconLabel:g,icon:x=(0,o.jsx)(c,{}),ignoreFallback:f,referrerPolicy:v,crossOrigin:y}=e,b=(0,d.l)({src:t,onError:n,crossOrigin:y,ignoreFallback:f});return t&&"loaded"===b?(0,o.jsx)(a.B.img,{src:t,srcSet:r,alt:p,onLoad:i,referrerPolicy:v,crossOrigin:null!=y?y:void 0,className:"chakra-avatar__img",loading:m,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:h}}):p?(0,o.jsx)(s,{className:"chakra-avatar__initials",getInitials:l,name:p}):(0,u.cloneElement)(x,{role:"img","aria-label":g})}p.displayName="AvatarImage";var h=r(35697),m=r(10450),g=r(85265),x=r(79363),f={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},v=(0,h.R)((e,t)=>{let r=(0,m.o5)("Avatar",e),[i,s]=(0,u.useState)(!1),{src:d,srcSet:h,name:v,showBorder:y,borderRadius:b="full",onError:j,onLoad:C,getInitials:w=l,icon:k=(0,o.jsx)(c,{}),iconLabel:B=" avatar",loading:S,children:A,borderColor:N,ignoreFallback:E,crossOrigin:I,referrerPolicy:_,...D}=(0,g.MN)(e),R={borderRadius:b,borderWidth:y?"2px":void 0,...f,...r.container};return N&&(R.borderColor=N),(0,o.jsx)(a.B.span,{ref:t,...D,className:(0,x.cx)("chakra-avatar",e.className),"data-loaded":(0,x.sE)(i),__css:R,children:(0,o.jsxs)(n,{value:r,children:[(0,o.jsx)(p,{src:d,srcSet:h,loading:S,onLoad:(0,x.Hj)(C,()=>{s(!0)}),onError:j,getInitials:w,name:v,borderRadius:b,icon:k,iconLabel:B,ignoreFallback:E,crossOrigin:I,referrerPolicy:_}),A]})})});v.displayName="Avatar"},85949:(e,t,r)=>{"use strict";r.d(t,{K:()=>l});var n=r(98233),i=r(35697),a=r(53239),o=r(80263),l=(0,i.R)((e,t)=>{let{icon:r,children:i,isRound:l,"aria-label":s,...c}=e,d=r||i,u=(0,a.isValidElement)(d)?(0,a.cloneElement)(d,{"aria-hidden":!0,focusable:!1}):null;return(0,o.jsx)(n.$,{padding:"0",borderRadius:l?"full":void 0,ref:t,"aria-label":s,...c,children:u})});l.displayName="IconButton"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.