import{s as K,n as Q,o as V}from"../chunks/scheduler.d6170356.js";import{S as X,i as Y,g as l,s as a,r as j,A as Z,h as r,f as n,c as i,j as W,u as E,x as k,k as D,y as ee,a as o,v as S,d as G,t as z,w as O}from"../chunks/index.fcd4cc08.js";import{H as R,E as te}from"../chunks/index.9f2da87a.js";function ne(q){let s,_,y,v,u,H,h,A='<a href="https://jupyter.org/" rel="nofollow">Jupyter notebooks</a> are a very popular format for sharing code and data analysis for machine learning and data science. They are interactive documents that can contain code, visualizations, and text.',w,p,T,m,F="Under the hood, Jupyter Notebook files (usually shared with a <code>.ipynb</code> extension) are JSON files. While viewing these files directly is possible, it’s not a format intended to be read by humans. The Hub has rendering support for notebooks hosted on the Hub. This means that notebooks are displayed in a human-readable format.",x,f,U='<img src="https://huggingface.co/blog/assets/135_notebooks-hub/before_after_notebook_rendering.png" alt="Before and after notebook rendering"/>',C,b,B="Notebooks will be rendered when included in any type of repository on the Hub. This includes models, datasets, and Spaces.",L,c,P,d,I='<a href="https://colab.google/" rel="nofollow">Google Colab</a> is a free Jupyter Notebook environment that requires no setup and runs entirely in the cloud. It’s a great way to run Jupyter Notebooks without having to install anything on your local machine. Notebooks hosted on the Hub are automatically given a “Open in Colab” button. This allows you to open the notebook in Colab with a single click.',M,g,J,$,N;return u=new R({props:{title:"Jupyter Notebooks on the Hugging Face Hub",local:"jupyter-notebooks-on-the-hugging-face-hub",headingTag:"h1"}}),p=new R({props:{title:"Rendering Jupyter notebooks on the Hub",local:"rendering-jupyter-notebooks-on-the-hub",headingTag:"h2"}}),c=new R({props:{title:"Launch in Google Colab",local:"launch-in-google-colab",headingTag:"h2"}}),g=new te({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/notebooks.md"}}),{c(){s=l("meta"),_=a(),y=l("p"),v=a(),j(u.$$.fragment),H=a(),h=l("p"),h.innerHTML=A,w=a(),j(p.$$.fragment),T=a(),m=l("p"),m.innerHTML=F,x=a(),f=l("p"),f.innerHTML=U,C=a(),b=l("p"),b.textContent=B,L=a(),j(c.$$.fragment),P=a(),d=l("p"),d.innerHTML=I,M=a(),j(g.$$.fragment),J=a(),$=l("p"),this.h()},l(e){const t=Z("svelte-u9bgzb",document.head);s=r(t,"META",{name:!0,content:!0}),t.forEach(n),_=i(e),y=r(e,"P",{}),W(y).forEach(n),v=i(e),E(u.$$.fragment,e),H=i(e),h=r(e,"P",{"data-svelte-h":!0}),k(h)!=="svelte-3oolx1"&&(h.innerHTML=A),w=i(e),E(p.$$.fragment,e),T=i(e),m=r(e,"P",{"data-svelte-h":!0}),k(m)!=="svelte-1invhcr"&&(m.innerHTML=F),x=i(e),f=r(e,"P",{"data-svelte-h":!0}),k(f)!=="svelte-d4zk2v"&&(f.innerHTML=U),C=i(e),b=r(e,"P",{"data-svelte-h":!0}),k(b)!=="svelte-8yg2e9"&&(b.textContent=B),L=i(e),E(c.$$.fragment,e),P=i(e),d=r(e,"P",{"data-svelte-h":!0}),k(d)!=="svelte-t0kp3f"&&(d.innerHTML=I),M=i(e),E(g.$$.fragment,e),J=i(e),$=r(e,"P",{}),W($).forEach(n),this.h()},h(){D(s,"name","hf:doc:metadata"),D(s,"content",oe)},m(e,t){ee(document.head,s),o(e,_,t),o(e,y,t),o(e,v,t),S(u,e,t),o(e,H,t),o(e,h,t),o(e,w,t),S(p,e,t),o(e,T,t),o(e,m,t),o(e,x,t),o(e,f,t),o(e,C,t),o(e,b,t),o(e,L,t),S(c,e,t),o(e,P,t),o(e,d,t),o(e,M,t),S(g,e,t),o(e,J,t),o(e,$,t),N=!0},p:Q,i(e){N||(G(u.$$.fragment,e),G(p.$$.fragment,e),G(c.$$.fragment,e),G(g.$$.fragment,e),N=!0)},o(e){z(u.$$.fragment,e),z(p.$$.fragment,e),z(c.$$.fragment,e),z(g.$$.fragment,e),N=!1},d(e){e&&(n(_),n(y),n(v),n(H),n(h),n(w),n(T),n(m),n(x),n(f),n(C),n(b),n(L),n(P),n(d),n(M),n(J),n($)),n(s),O(u,e),O(p,e),O(c,e),O(g,e)}}}const oe='{"title":"Jupyter Notebooks on the Hugging Face Hub","local":"jupyter-notebooks-on-the-hugging-face-hub","sections":[{"title":"Rendering Jupyter notebooks on the Hub","local":"rendering-jupyter-notebooks-on-the-hub","sections":[],"depth":2},{"title":"Launch in Google Colab","local":"launch-in-google-colab","sections":[],"depth":2}],"depth":1}';function ae(q){return V(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class re extends X{constructor(s){super(),Y(this,s,ae,ne,K,{})}}export{re as component};
